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

Comments

@limkinZero
Copy link

commented Sep 2, 2015

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

This comment has been minimized.

Copy link
Collaborator

commented Sep 2, 2015

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

This comment has been minimized.

Copy link
Author

commented Sep 2, 2015

Thanks, Now it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.