Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

[Bug]: Dygraph charts not changing colours when "data-colors" amended. #463

Description

@loveaj

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

  1. Embed a netdata chart in a React JSX component and customise the colours using the "data-colors" parameter.
  2. Deploy and view the page. The original colours will be displayed.
  3. Change the colours in the "data-colors" parameter and rebuild the React app.
  4. Deploy and view the page. The original colours will be displayed not the new ones.

Screenshots

Screenshot from 2023-03-22 12-43-33

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions