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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Collaborator

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

This comment has been minimized.

Collaborator

TorsteinHonsi commented Jun 15, 2018

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

@vpckso

This comment has been minimized.

vpckso commented Jun 19, 2018

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

@TorsteinHonsi

This comment has been minimized.

Collaborator

TorsteinHonsi commented Jun 19, 2018

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

@pawelfus

This comment has been minimized.

Contributor

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

This comment has been minimized.

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