# How to make Timeseries TSVB is broken line to connecting line?

**URL:** https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567
**Category:** Kibana
**Created:** [May 10, 2021, 10:49am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567 "2021-05-10T10:49:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rakesh\_Rayabarapu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_rayabarapu/32/79132_2.png) [@Rakesh\_Rayabarapu](https://discuss.elastic.co/u/Rakesh_Rayabarapu)
#### Post date: [May 10, 2021, 10:49am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567/1 "2021-05-10T10:49:21Z")

</div>

Hi Team,

Please refer attached screenshot, line graph is broken after group by with terms aggregation.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/3/335337370f8ab673de5557536a0b64222e157657.png) .

Before group by aggregation

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3e8aa2d8e0fafdad5477fc9ab0908e9a21d325e4.png) .

Please help me to get continuous line in TSVB Timeseries even with group by with terms aggregation.

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [May 10, 2021, 11:44am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567/2 "2021-05-10T11:44:35Z")

</div>

Hello,

You can do this with the `.fit()` function. For example `.fit(average)` will fill the gaps for each with the average function of the two values

---

<div class="post-metadata">

### Author: ![Rakesh\_Rayabarapu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_rayabarapu/32/79132_2.png) [@Rakesh\_Rayabarapu](https://discuss.elastic.co/u/Rakesh_Rayabarapu)
#### Post date: [May 11, 2021, 4:03am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567/3 "2021-05-11T04:03:03Z")

</div>

Hello Marius, Thank you for response.

I am unable to find option to include fit function.  
please guide me where I can do this in TSVB.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d04dd8cca9b2ad947365bc5a0973e2034406e91f.png) .  
please refer above screenshot.  
and we are using self-managed 7.10.0 version.

thanks  
Rakesh

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [May 13, 2021, 8:49am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567/4 "2021-05-13T08:49:27Z")

</div>

Yeah, sorry, I was thinking about Timelion. This is not possible in TSVB sadly.

---

<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: [June 10, 2021, 8:50am UTC](https://discuss.elastic.co/t/how-to-make-timeseries-tsvb-is-broken-line-to-connecting-line/272567/5 "2021-06-10T08:50:26Z")

</div>

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