# "Visual Builder": Aggregation - Calculation breaks graph into unconnected points

**URL:** https://discuss.elastic.co/t/visual-builder-aggregation-calculation-breaks-graph-into-unconnected-points/105491
**Category:** Kibana
**Created:** [October 27, 2017, 12:22am UTC](https://discuss.elastic.co/t/visual-builder-aggregation-calculation-breaks-graph-into-unconnected-points/105491 "2017-10-27T00:22:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Schizo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/schizo/32/23478_2.png) [@Schizo](https://discuss.elastic.co/u/Schizo)
#### Post date: [October 27, 2017, 12:22am UTC](https://discuss.elastic.co/t/visual-builder-aggregation-calculation-breaks-graph-into-unconnected-points/105491/1 "2017-10-27T00:22:34Z")

</div>

I'm generating a nice graph with Kibana on a linear data that has timestamp and number of used items. Using the Visual Builder i can generate a nice looking graph, which count's as well . However i am applying a count Aggregation o that i can pipe the count and divided by 3.

Doing this breaks the graph so that not all point's are connected. I wanted to use the .fit() but it doesn't seem that i can use that function in "painless Script"

Appreciate any help.

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [October 30, 2017, 9:12pm UTC](https://discuss.elastic.co/t/visual-builder-aggregation-calculation-breaks-graph-into-unconnected-points/105491/2 "2017-10-30T21:12:34Z")

</div>

It sounds like this won't be supported - [https://github.com/elastic/kibana/issues/11793](https://github.com/elastic/kibana/issues/11793) has a pretty detailed explanation surrounding it and a suggestion to use timelion's fit function or kibana's line chart.

Anecdotally I've found setting my own time interval instead of auto if I know how often the data is pushed helps get the lines connected again.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 27, 2017, 9:14pm UTC](https://discuss.elastic.co/t/visual-builder-aggregation-calculation-breaks-graph-into-unconnected-points/105491/3 "2017-11-27T21:14:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
