influxdata/giraffe

Line graph coloring based on threshold

T0-B1 opened this issue · 0 comments

T0-B1 commented

In a line graph, I would like to be able to set a threshold and having the line color change relative to the threshold, i.e. green when Y>0, red otherwise.
The only way i was able to achieve something similar was to split the data into different lines, based on the threshold.

immagine

Problem is, these lines are not connected between each others, resulting in empty areas on zooming, especially noticeable when values bounce above and below the threshold.

immagine
immagine

Manually connecting the lines this way would require forging "fake" datapoints right at threshold value for the line tho change color in the exact spot needed and it's not desirable.
Is there an easier way around this?