# Scatter plot with aggregation

**URL:** <https://community.plotly.com/t/scatter-plot-with-aggregation/25352>\
**Category:** plotly.js\
**Created:** [July 2, 2019, 11:22pm UTC](https://community.plotly.com/t/scatter-plot-with-aggregation/25352 "2019-07-02T23:22:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keval](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@keval](https://community.plotly.com/u/keval)\
**Post date:** [July 2, 2019, 11:22pm UTC](https://community.plotly.com/t/scatter-plot-with-aggregation/25352/1 "2019-07-02T23:22:09Z")

</div>

Hi, I am looking to create a scatter plot of a time series object with date on the x-axis and frequency count on y.

```
    df['Date'] 

   2019-09-30
   2019-12-31
   2019-12-31
   2020-03-31
   2020-12-31
   2020-06-30
   2020-09-30
   2020-12-31
   2020-12-31
   2020-12-31
   2021-03-31
   2021-03-31

```

My question is how do I do this in plotly and dash. A scatter plot with date in x-axis and aggregation values in y-axis. Do plotly graph objects support aggregation?

```
Desired output:
2019-09-30 1
2019-12-31 2
2020-03-31 1
2020-12-31 4
2020-06-30 1
2020-09-30 1
2021-03-31 2
```

---

<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:** [July 4, 2019, 1:54pm UTC](https://community.plotly.com/t/scatter-plot-with-aggregation/25352/2 "2019-07-04T13:54:42Z")

</div>

Looking at the examples on [https://plot.ly/javascript/aggregations/](https://plot.ly/javascript/aggregations/) is a good place to start.
