-
Notifications
You must be signed in to change notification settings - Fork 42
[Bug]: Dygraph charts not changing colours when "data-colors" amended. #463
Comments
@novykh is this something specific to the |
@loveaj it works like this: <div data-netdata="apps.cpu"
data-width="100%"
data-height="300px"
data-after="-60"
data-points="60"
data-debug="false"
data-decimal-digits="0"
data-dt-element-name="time903"
data-colors="#000000 #111111 #222222 #333333 #444444"
></div> Result: Without The dashboard appends also the normal pallet to your colors, so that if the chart needs more colors, it will have them. |
@ktsaou That is exactly what I am doing. In your example I initially code the chart as:
But when I display the chart the colours remain just as they did before. |
It's only seems to be a problem with the dygraph chart type. |
Is anyone able to reproduce this behaviour and investigate? |
Bug description
I'm using netedata charts in React JSX components.
When I change the "data-colors" parameter of the chart to custimise the colours, nothing changes in the displayed chart. Inspecting the HTML of the displayed page shows the amended parameter, it's just not being used. See screenshot.
The colour values specified are blue and green. The graph shows pink and yellow.
Expected behavior
Changing the "data-colors" parameter and deploying another build should show the new chart colours.
Steps to reproduce
Screenshots
Error Logs
No response
Desktop
OS: Linux, MacOS, Windows
Browser Chrome, Edge
Browser Version Chrome version 111.0.5563.64 (Official Build) (64-bit)
Additional context
No response
The text was updated successfully, but these errors were encountered: