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 does not destroy properly #7021

Closed
arthoul opened this issue Jul 31, 2017 · 12 comments
Closed

Chart does not destroy properly #7021

arthoul opened this issue Jul 31, 2017 · 12 comments
Assignees

Comments

@arthoul
Copy link

@arthoul arthoul commented Jul 31, 2017

Expected behaviour

I want to be able to destroy a chart with an "areasplinerange" series and a "spline" one.

Actual behaviour

If I update range and then, destroy the chart, I get the following error:
"Cannot read property 'isSVG' of undefined"

Live demo with steps to reproduce

click on the "1m" button and then on "destroy chart"
http://jsfiddle.net/n2dy4xk3/2/

Affected browser(s)

all

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jul 31, 2017

@arthoul Please clear yours browser cache and try again - this error might happen when trying to use current / new Highcharts / Highstock with an exporting module in older version. I am unable to recreate the problem.

@arthoul
Copy link
Author

@arthoul arthoul commented Jul 31, 2017

Hi @KacperMadej ,
Same trouble with no cache enabled (tested on IE+Chrome on Windows 7 & Chrome on macos).
You cannot reproduce it with the jsfiddle ?

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jul 31, 2017

@arthoul Tooltip had to be triggered at least once - I have recreate the problem. Thank you for your help and for reporting the problem.

@arthoul
Copy link
Author

@arthoul arthoul commented Jul 31, 2017

@KacperMadej you got it ! thank's to you

@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Jul 31, 2017

@arthoul The problem is fixed on hc5-fixes branch, so you could use that version of code until next official release (the issue will be closed when the commit will be included in next release candidate version of Highcharts) or wait for the next Highcharts version with the fix included.

Working demo: http://jsfiddle.net/n2dy4xk3/4/

@JDoro
Copy link

@JDoro JDoro commented Sep 12, 2017

Is this getting merged any time soon?

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Sep 13, 2017

The fix is merged into master branch, that means it will be included in the next release.

@JDoro
Copy link

@JDoro JDoro commented Sep 13, 2017

Ah. I saw that the branch it was developed on was still out there and thought it hadn't been merged yet. Any idea when the next release will be?

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Sep 14, 2017

It will ship within a few weeks.

Here's a drop-in fix that you can use in the meantime:

Highcharts.wrap(
    Highcharts.seriesTypes.arearange.prototype.pointClass.prototype,
    'setState',
    function (proceed) {
        proceed.apply(this, Array.prototype.slice.call(arguments, 1));
    
        if (this.series.stateMarkerGraphic) {
    	    this.series.lowerStateMarkerGraphic = undefined;
        }
    }
);

View it live at http://jsfiddle.net/highcharts/n2dy4xk3/5/

@JDoro
Copy link

@JDoro JDoro commented Sep 14, 2017

Awesome! This worked! Thanks!

@dt-karl-kuhn
Copy link

@dt-karl-kuhn dt-karl-kuhn commented Mar 1, 2018

Hi, what release is this included in?

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Mar 1, 2018

The issue is fixed since 6.0.0 version.

Change log: https://www.highcharts.com/documentation/changelog

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