I'm trying to apply the zooming function on a chart I have on my website. More or less, the actual code of the chart is the one I added in the following CodePen: https://codepen.io/leonardodaga/pen/eYNZdVV
This example works, but I'm trying to use a different xAxis type (not "time") and to format the xAxis ticks with a callback (now commented in the CodePen):
callback: function (value, index, values) {
return Math.floor(value).toFixed(0) + '.' + (((value - Math.floor(value)) * 12).toFixed(0));
},
Removing type: "time" the zoom ends to work. Is there something wrong with what I'm doing?