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

When programmatically changing the chart type, some default styles from original chart blend into subsequent charts #4164

Open
rguttersohn opened this issue Dec 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rguttersohn
Copy link

Description

When updating the chart type, after an event is triggered, the default styles from the original chart blend into subsequent charts.
For example, let's say the original chart is an area chart. If changed to a bar chart, the bars have an opacity to them and the symbols in the legend do no update.

Steps to Reproduce

  1. Go to js fiddle
  2. Use select field to switch between chart types.
  3. See that some of the default styles from the initial chart spill over into the next chart. If you switch the initial chart to bar and then change it to area, you'll see the same thing happens.

Expected Behavior

When changing the chart type programmatically, the default chart styles should be reset.

Actual Behavior

When changing the chart type programmatically, the styles of the original chart blend into the subsequent charts

Screenshots

See below where the bar chart has adopted styles from the area chart -- the initial chart.

Screen Shot 2023-12-20 at 2 29 57 PM

Reproduction Link

Go to js fiddle

@rguttersohn rguttersohn added the bug Something isn't working label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant