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 module: error with pie charts #4529

Closed
limkinZero opened this issue Sep 2, 2015 · 2 comments
Closed

Boost module: error with pie charts #4529

limkinZero opened this issue Sep 2, 2015 · 2 comments

Comments

@limkinZero
Copy link

Hi,

I know it this module only used when you have too much data with line, column, area charts but when i push the file boost.js in my project I'm having errors at init pie charts because it hasn´t xAxis.

hasExtremes: function (checkX) {
            var options = this.options,
                data = options.data,
                xAxis = this.xAxis.options,
                yAxis = this.yAxis.options;

The error is:
TypeError: Cannot read property 'options' of undefined
at Object.H.extend.hasExtremes (http://localhost:18080/test/?serverAction=full-screen-js:122179:35)

How could I used the boost module without affecting the type pie charts?

@TorsteinHonsi
Copy link
Collaborator

Until the next maintenance release, add this snippet to your page to work around the issue:

Highcharts.wrap(Highcharts.Series.prototype, 'hasExtremes', function (proceed, checkX) {
    if (this.xAxis && this.yAxis) {
        return proceed.call(this, checkX);
    } else {
        return false;
    }
});

View live demo.

@limkinZero
Copy link
Author

Thanks, Now it works fine.

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