请从下面的链接中查看附件图像。我正在为本地项目制作虚拟数据图表。问题陈述:我的问题是,当我在以下代码中设置userHTML:true时,它将x轴标签向上移动。但是,当我删除此行时,我的标签就在正确的位置。但是我需要同时使用useHTML true和它们的正确位置。
xAxis: {
categories: seriesDataMonthName,
title: {
text: 'Month/Year (Charge Date of Service)'
},
labels: {
useHTML: true,
formatter: function () {
return '<a style="display:inline !important" class="clsCPTTrendingChart" data-toggle="modal" data-target="#myModal" name="' + this.value + '">' + this.value + '</a>'
},
}
},
感谢您的评论。我只是删除useHTML:true并直接在标记中调用javascript函数。这个对我有用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句