dsilletti
Posts: 2
Joined: Fri Nov 26, 2021 4:06 am

Highcharts extension not working in v9

Hi,

I was successfully extending Highcharts v8.2.2. to draw arrows on the line charts:

http://jsfiddle.net/v45wLcf6/

But the same code it's not working with v9:

http://jsfiddle.net/vyfsf1ft/18/

It's possible to make the extension working also with Highcharts v9?

Thank you.

Kind Regards,
Domenico
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Highcharts extension not working in v9

Hello Domenico

Welcome to our forum and thanks for contacting us with your question!

The prototype drawGraph function was split for each series type so that wrap pointed to a function that does not exist (line 7). I am sending a demo with a working wrap in the latest version.

Demo: http://jsfiddle.net/BlackLabel/r4qLwy89/

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
dsilletti
Posts: 2
Joined: Fri Nov 26, 2021 4:06 am

Re: Highcharts extension not working in v9

Thank you Michal,

I replaced

Code: Select all

H.wrap(H.Series.prototype, 'drawGraph', function (proceed)
with

Code: Select all

H.wrap(H.seriesTypes.line.prototype, 'drawGraph', function(proceed)
and the code it's perfectly working in Highcharts v9.

Best Regards,
Domenico
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Highcharts extension not working in v9

You're welcome!

Feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”