-
Notifications
You must be signed in to change notification settings - Fork 604
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
Need to show multiple colours for differentiating between data on the same line graph. #998
Comments
Solution 1: Solution 2: Solution 3: Solution 3 is the cleanest way to achieve your goal. |
Thanks for the response andnorxor. If possible can you share some more light on solution 1. Any example or sample link would be really useful. Thanks |
Sry, I have no minimal example to share. Maybe this will help you to get a better understanding. The following represents values over time:
To get different colors you just have to split this series and fill the missing values with nulls. Let's say we want show the values from time 1 to 2 and from 4 to 5 in another color. Then you have to transform your underlying data s follows:
Then you have to format the legend, otherwise a value for each series shows up. |
Hi,
I have requirement to show multiple colours on the same line graph. This is basically to differentiate the various stages of data.
I haven't found any such option available in dygraph. Can someone help on how to achieve this.
The text was updated successfully, but these errors were encountered: