zl程序教程

您现在的位置是:首页 >  其它

当前栏目

highcharts tooltip shared formatter 如何仅显示非0的数值,并显示对应的颜色

如何 显示 颜色 对应 数值 shared HighCharts tooltip
2023-09-14 08:56:50 时间

highcharts 是一个很出色的js绘图程序,他的的共享数据提示框配置了shared后会把所有坐标值显示出来,而这时候有些为0的值我们不需要,这回造成一些迷惑,看起来也比较乱,可通过以下配置解决


formatterName += "" + " span style="color:  + this.points #91;i #93;.series.color + ;" " + this.points[i].series.name + ":"