如何在HighCharts上绘制垂直线? [英] How to draw a vertical line on HighCharts?
本文介绍了如何在HighCharts上绘制垂直线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在当天跟踪垂直时间线,但我没有在HighCharts文档中找到解决方案。
I want to trace a vertical time line on the current day, but I didn't found solution on HighCharts documentation.
像这样:
推荐答案
您正在寻找情节线。请参阅此处的文档: http://api.highcharts.com/highcharts#xAxis.plotLines 。
You're looking for a plot line. See the documentation here: http://api.highcharts.com/highcharts#xAxis.plotLines.
基本格式为:
The basic format is:
xAxis: {
plotLines: [{
color: '#FF0000', // Red
width: 2,
value: 5.5 // Position, you'll have to translate this to the values on your x axis
}]
},
这篇关于如何在HighCharts上绘制垂直线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文