Highchart line chart Tooltip showing index value i

2019-08-18 14:25发布

My Problem of alignment is resolved with Highcharts graph should start entirely to the left and end entirely to the right

But the tooltip information shown with index instead of x-axis label.

Without calling Highcharts.Axis.prototype.init below is the output?

http://jsfiddle.net/mkpasala/3s0prgau/

When I called the Highcharts.Axis.prototype.init method like below, instead of xAxis label its showing index.

http://jsfiddle.net/mkpasala/k94cfn8t/

Please help me to fix this inside Highcharts.Axis.prototype.init method.

1条回答
手持菜刀,她持情操
2楼-- · 2019-08-18 14:55

I resolved the issue by taking categories into a variable before calling Highcharts.Axis.prototype.init and used tooltip.formatter function to format the tooltip. Below is the link to that solution.

jsfiddle.net/mkpasala/3s0prgau/14/
查看更多
登录 后发表回答