Label hover function in highchart

匆匆过客 提交于 2019-12-25 07:29:40

问题


I am using highchart.js file for rendering chart in my application. I want to show customize label for Bar chart.

My requirements are if my label name has long text like "My Label Text Long", It should show name label like (My Label...) in front of bar chart. On mouse over to label name, it should show me a full label name in small tooltip. I consulted Highchart documentation but did not find any solution for it.


回答1:


Slice down the value. As you are getting values in .ja file. Slice those values before displaying.

this.value.slice(0,21) +"...";


来源:https://stackoverflow.com/questions/17293704/label-hover-function-in-highchart

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