Customizing Graph Display with Zero Values and Smoothness

TLDR Romario wanted to customize a graph to show 0 values and smoothness. Srikanth explained that the graph is based on data returned, so it won't show spikes from zero if there are no zero values.

Photo of Romario
Romario
Wed, 10 May 2023 19:10:36 UTC

Hello, is there way to customize the graph? How to show 0 values, or how to smooth the graph

Photo of Romario
Romario
Wed, 10 May 2023 19:11:34 UTC

Example, this dot. How can I show that is a spike from 0 to the value and then back to 0?

Photo of Srikanth
Srikanth
Thu, 11 May 2023 01:45:00 UTC

> How can I show that is a spike from 0 to the value and then back to 0? I don’t see a 0 value. The dot you mentioned shows 250ms. How is it a spike from zero value?

Photo of Romario
Romario
Thu, 11 May 2023 19:58:43 UTC

0 to 285ms to then 0 again

Photo of Romario
Romario
Mon, 15 May 2023 18:52:44 UTC

Srikanth

Photo of Srikanth
Srikanth
Tue, 16 May 2023 07:36:38 UTC

> 0 to 285ms to then 0 again The graph is based on the data returned. The response doesn’t show such spikes if there is no zero value. For instance, take the following two kinds of responses. ```[t1, 100], [t2, 250], [t3, 180], [t4, 120], [t5, 230]``` vs ```[t1, 100], [t2, 250], [t3, 0], [t4, 180], [t5, 120], [t6, 0], [t7, 230]``` There will be no spike from zero and back for the first data. Because the data says, it never went to zero.

Photo of Romario
Romario
Tue, 16 May 2023 14:21:00 UTC

Hmm interesting, maybe coalesce null to 0? Not sure :thinking_face:

Photo of Srikanth
Srikanth
Tue, 16 May 2023 15:33:42 UTC

Do you have null values in the response?