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

Crash during chart creation in highstock #7995

Closed
manu-st opened this issue Mar 12, 2018 · 2 comments
Closed

Crash during chart creation in highstock #7995

manu-st opened this issue Mar 12, 2018 · 2 comments

Comments

@manu-st
Copy link

manu-st commented Mar 12, 2018

Expected behaviour

No crash.

Actual behaviour

Crash when trying to call getExtremes on an X-axis that doesn't exist yet.

Live demo with steps to reproduce

http://jsfiddle.net/xccgbzru/

Product version

Latest version of highstock.

Affected browser(s)

All

@pawelfus
Copy link
Contributor

pawelfus commented Mar 13, 2018

Hi @manu-st

Thank you for reporting the issue. It's connected to Highstock components: rangeSelector, Navigator and Scrollbar. These components require an xAxis to be connected to. With disabled scrollbar (and others) it works fine: http://jsfiddle.net/BlackLabel/xccgbzru/5/

@TorsteinHonsi
Copy link
Collaborator

TorsteinHonsi commented Mar 14, 2018

The problem also goes away when omitting the empty xAxis: [] in the configuration.

Simplified demo: http://jsfiddle.net/highcharts/xccgbzru/9/

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

No branches or pull requests

3 participants