Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change local functions of highcharts

Highcharts.numberFormat is a pointer to a local function in the Highcharts closure. Highcharts uses the local function internally. how someone can change this (or any other local function inside closure such as dateFormat, etc.) outside of original source as a plugin or something?

like image 959
pajooh Avatar asked Nov 20 '25 01:11

pajooh


1 Answers

I assume your question is to change the internal function's behavior within the closure.

As far as I've understand the src of the highcharts, there is no way to change the internal functions defined inside the closure, unless you edit the source file (I'd not recommend this at all).

The principal behind this is, the library itself uses those functions for internal purposes, therefore change in such functions will lead to undesired behavior of the library.

Hopefully, I'm making sense.

like image 141
code-jaff Avatar answered Nov 21 '25 14:11

code-jaff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!