Highchart line chart Tooltip showing index value instead of X-axis formatted label name

核能气质少年 提交于 2019-12-11 15:35:51

问题


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:


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/


来源:https://stackoverflow.com/questions/53614401/highchart-line-chart-tooltip-showing-index-value-instead-of-x-axis-formatted-lab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!