Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line graph coloring based on threshold #757

Open
T0-B1 opened this issue May 26, 2022 · 0 comments
Open

Line graph coloring based on threshold #757

T0-B1 opened this issue May 26, 2022 · 0 comments

Comments

@T0-B1
Copy link

T0-B1 commented May 26, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant