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

boost-canvas fails when chart has more than one series #7670

Closed
achin opened this issue Jan 15, 2018 · 1 comment
Closed

boost-canvas fails when chart has more than one series #7670

achin opened this issue Jan 15, 2018 · 1 comment

Comments

@achin
Copy link

achin commented Jan 15, 2018

Expected behaviour

boost-canvas (Boost's Canvas fallback for browsers that don't support WebGL) should work the same way as regular boost. When your chart has multiple series, it should work the same way as when it has one.

Actual behaviour

If you disable WebGL and load boost-canvas, then you get the following error when charting more than one series.

Uncaught TypeError: Cannot read property 'width' of undefined
    at l.renderCanvas (https://code.highcharts.com/modules/boost-canvas.js:16:349)
    at l.c (https://code.highcharts.com/modules/boost.js:50:42)
    at l.a.(anonymous function) [as render] (https://code.highcharts.com/highcharts.js:19:363)
    at https://code.highcharts.com/highcharts.js:253:346
    at Array.forEach (<anonymous>)
    at a.each (https://code.highcharts.com/highcharts.js:29:308)
    at a.Chart.renderSeries (https://code.highcharts.com/highcharts.js:253:304)
    at a.Chart.render (https://code.highcharts.com/highcharts.js:255:217)
    at a.Chart.firstRender (https://code.highcharts.com/highcharts.js:258:338)
    at a.Chart.init (https://code.highcharts.com/highcharts.js:234:5)

Live demo with steps to reproduce

The window.WebGLRenderingContext = undefined; line simulates disabling WebGL without having to play with browser settings.

https://jsfiddle.net/alexbachin/ck0s9q2e/

Product version

Highcharts 6.0.4

Affected browser(s)

Chrome 61/63, Firefox 43/47/56/57

@sebastianbochan
Copy link
Contributor

Hi @achin
Thank you for the reporting.
Duplicate of #7610.

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

No branches or pull requests

2 participants