# Plotting a moving average in plotly.js

**URL:** <https://community.plotly.com/t/plotting-a-moving-average-in-plotly-js/10153>\
**Category:** plotly.js\
**Created:** [May 8, 2018, 1:57am UTC](https://community.plotly.com/t/plotting-a-moving-average-in-plotly-js/10153 "2018-05-08T01:57:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSFARGEG](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@DSFARGEG](https://community.plotly.com/u/DSFARGEG)\
**Post date:** [May 8, 2018, 1:57am UTC](https://community.plotly.com/t/plotting-a-moving-average-in-plotly-js/10153/1 "2018-05-08T01:57:12Z")

</div>

Is it possible to plot a moving average with the plotly javascript library?  
I tried searching for solutions but there doesn’t seem to be one  
Any help will be appreciated!

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [May 8, 2018, 2:27pm UTC](https://community.plotly.com/t/plotting-a-moving-average-in-plotly-js/10153/2 "2018-05-08T14:27:24Z")

</div>

We don’t expose a moving average transform at the moment. You can always compute it yourself and plot the result as a separate trace though.
