You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating chart color doesn't seem to have any visible effect:
chart.updateOptions({
colors: ["#00FF00"]
})
Here's a simple react component implementation example, with initial chart color set to red:
Expected behavior when chartColor changes:
chart changes color to green
the x-axis labels are removed
Actual behavior:
only the x-axis labels are removed (color fails to change)
Not sure what happens here, but I'm guessing that it simply merges the colors array, resulting in ["#FF0000", "#00FF00"], but that's obviously not what I want. I want to change the existing color.
I accidentally mutated the user-defined config object and that was preventing the colors to be updated.
Here is the working codepen example which shows the color being successfully updated.
Updating chart color doesn't seem to have any visible effect:
Here's a simple react component implementation example, with initial chart color set to red:
Expected behavior when
chartColor
changes:Actual behavior:
Not sure what happens here, but I'm guessing that it simply merges the colors array, resulting in ["#FF0000", "#00FF00"], but that's obviously not what I want. I want to change the existing color.
The text was updated successfully, but these errors were encountered: