Last label is not showing in stepped labels of highchart

匿名 (未验证) 提交于 2019-12-03 08:57:35

问题:

I have a highchart which shows date label on x-axis, When there are more than 10 dates I'm using a logic of dividing the total dates by 10 and giving the resulting value to step. Because of step value it is not showing the last label. Please help if anybody know's the solution. I tried with showLastLabel and endOnTick but these are not working.

xAxis: {    categories: xcategories,    labels: {               step: getStep(chartJson.length)            } }  function getStep(jsonLength){     var step =1;     if(jsonLength>=10){         step= (parseInt)(jsonLength/10);     }     return step;; } 

回答1:

Set showLastLabel parameter as true



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