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

Chart corrupted when update() with chart.type #8481

Closed
vpckso opened this issue Jun 15, 2018 · 6 comments
Closed

Chart corrupted when update() with chart.type #8481

vpckso opened this issue Jun 15, 2018 · 6 comments

Comments

@vpckso
Copy link

@vpckso vpckso commented Jun 15, 2018

Expected behaviour

  1. change to bar chart
  2. keep showing 3 x-axis

Actual behaviour

  1. can't change type to bar
  2. duplicated x-axis

Live demo with steps to reproduce

http://jsfiddle.net/3oybgrep/10/

Product version

Highcharts 6.1

Affected browser(s)

any

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jun 15, 2018

Thanks for reporting this bug!

Workaround

What separates a column from a bar chart is only that a bar is in an inverted chart, so in your case you can work around the issue by setting chart.inverted: http://jsfiddle.net/3oybgrep/12/

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jun 15, 2018

Demo with the fix applied: http://jsfiddle.net/highcharts/3oybgrep/17/

@vpckso
Copy link
Author

@vpckso vpckso commented Jun 19, 2018

Thx for the fix, but problem 2 didn't fix.
http://jsfiddle.net/3oybgrep/24/

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jun 19, 2018

Oh, sorry. As a workaround, you can set xAxis.uniqueNames: http://jsfiddle.net/3oybgrep/42/

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Jun 19, 2018

This works fine also when providing series options, instead of using data.js module http://jsfiddle.net/BlackLabel/3oybgrep/40/

@vpckso
Copy link
Author

@vpckso vpckso commented Jun 19, 2018

Thx for the workaround and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.