Problems with overriding lin2log and log2lin #8106
This is one of those bugs that if you look at the code, you'll just see it after a bit of thought.
Throughout the highcharts.src.js code you see the lin2log and log2lin functions called 1 of 3 different ways, only one of which works in all cases as expected.
Inside lin2log, the "this" value is set to the axis, and the local lin2log (or log2lin) function can access other scaling data about how the log is to be applied on that chart. In other words, inside my override:
When called like this, my override can't know which of my charts / which axis is asking for the conversion because this is undefined.
In this case, var lin2log = axis.lin2log doesn't help at all, I double checked and stepped through the code,
Going through and substituting axis.log2lin in place of log2lin and axis.lin2log in place of lin2log appears to fix things.
The text was updated successfully, but these errors were encountered: