As it is for x axis, it may be useful to use custom tick labels for y axis if they are given. Here's my code, feel free to improve it :
// change y from number to given label, if given
if(typeof item.series.yaxis.ticks !== 'undefined') {
for (var index in item.series.yaxis.ticks) {
if (item.series.yaxis.ticks.hasOwnProperty(index)) {
if (item.series.yaxis.ticks[index].v === y) {
content = content.replace(yPattern, item.series.yaxis.ticks[index].label);
}
}
}
}
As it is for x axis, it may be useful to use custom tick labels for y axis if they are given. Here's my code, feel free to improve it :