mizeljko
Posts: 1
Joined: Tue May 10, 2022 2:43 pm

Missing log2lin and lin2log

I am trying to override log2lin and lin2log methods following the demo in:
https://github.com/highcharts/highchart ... ve/demo.js

However, I cannot see logarithmic property field in Highcharts.Axis. I am using highchart as one of the dependency in package.json

Is there a different way to override these? I am trying to change these to use custom log base instead of the default 10.
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Missing log2lin and lin2log

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

You can pass a custom log base in yAxis.custom property and then use it in overriding function - just like in the demo below.

Demo: https://jsfiddle.net/BlackLabel/vy3j8gz5/

Let me know if that was what you were looking for and if you have any further questions feel free to ask,
Best regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”