high charts柱状图封顶处添加样式
high charts柱状图封顶处添加样式_柱状图上显示封顶值_不想学习只想玩的博客-CSDN博客
high charts柱状图封顶处添加样式
注意: useHTML:true
plotOptions: {
bar: {
dataLabels: {
enabled: true, //柱状上没有数值显示
allowOverlap: true, // 允许数据标签重叠
//high charts柱状图封顶处添加样式
formatter:function(){
return '<div style="width: 2px;height: 10px;background-color: #00BBFF;position: absolute;top: -5px;left: -5px;"></div>'
},
useHTML:true, //样式改变后,必须要添加
},
borderWidth: 0,
pointWidth: 10,
}
},