如何在HighCharts上绘制垂直线?
答
你正在寻找一个情节。请参阅此处的文档:http://api.highcharts.com/highcharts#xAxis.plotLines。
的基本格式是:
xAxis: {
plotLines: [{
color: '#FF0000', // Red
width: 2,
value: 5.5 // Position, you'll have to translate this to the values on your x axis
}]
},