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 update doesn't work with 3D when chart initialized with empty array of series #8641

Closed
renatoly opened this issue Jul 18, 2018 · 8 comments
Closed
Assignees
Labels

Comments

@renatoly
Copy link

@renatoly renatoly commented Jul 18, 2018

This could possibly be related to: #8628. But errors are different and demo setup as well.

Hero is the Demo: https://jsfiddle.net/renatoly/43wzkva5/1/

After initializing a chart with an empty series array, and then when updating it chart.update(options,true,true) it works perfectly when the chart is non 3D.

But when using options to specify a 3D Chart we get the following error:

highcharts-3d.js:64 Uncaught TypeError: Cannot read property 'left' of undefined
at G. (highcharts-3d.js:64)
at G.a.(fiddle.jshell.net/_display/anonymous function) [as getSlotWidth] (https://code.highcharts.com/highcharts.js:20:80)
at a.Tick.handleOverflow (highcharts.js:112)
at a.Tick.renderLabel (highcharts.js:117)
at a.Tick.render (highcharts.js:118)
at G.renderTick (highcharts.js:163)
at highcharts.js:164
at Array.forEach ()
at a.each (highcharts.js:28)
at G.render (highcharts.js:164)

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jul 18, 2018

Hi @renatoly

Thank you for reporting about the problem.

Internal note: This is a different issue than #8628

@renatoly
Copy link
Author

@renatoly renatoly commented Jul 31, 2018

Hi, I was wondering if there are any updates on this issue.

Thanks

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Aug 1, 2018

The bug is still opened, as a result it has not been fixed yet.

@TorsteinHonsi TorsteinHonsi self-assigned this Aug 17, 2018
@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Aug 17, 2018

Hi @renatoly , sorry for the delay!

Here's your demo with the fix applied: https://jsfiddle.net/highcharts/43wzkva5/41/.

The fix will be part of the next maintenance release, within a few weeks.

@renatoly
Copy link
Author

@renatoly renatoly commented Aug 27, 2018

Thank you very much, I am looking forward for the next release.

@apuravchauhan
Copy link

@apuravchauhan apuravchauhan commented Jun 18, 2019

@TorsteinHonsi
Might be unrelated, but it seems when you update the chart data, animation is not happening.
Example, click 3d button and then 3d2 button, you could see the changes don't animate

https://jsfiddle.net/asL5o8r9/

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Jun 19, 2019

It seems that line is animating correctly, while column is not animating at all. Let me open new issue for that: #11100 - it's a regression, animation used to be fine in v7.0.

@apuravchauhan
Copy link

@apuravchauhan apuravchauhan commented Jun 19, 2019

@pawelfus Thanks for prompt acknowledgement

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
6 participants