function drawline(addition) {
//var xaxval= ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var xaxval= ['10.1', '10.2', '10.3', '10.4', '10.5', '10.6','10.7', '10.8', '10.9', '10.10', '10.11', '10.12'];
var oilperday = [12.57,13.25,14.21,14.98,15.44,15.67,16.12,17.24,17.68,18.36,null,null,null,16.53,16.11,16.06,15.54,15.02,14.71,14.28,13.51,13.03,12.59,12.18,11.58,11.26,10.82,10.16,9.76,9.36];
var liquidperday = [17.46,17.93,19.30,22.40,22.06,20.96,23.03,25.06,25.76,27.23,null,null,null,25.11,24.63,24.12,23.65,23.17,22.70,22.65,21.58,20.94,20.30,19.70,19.10,18.54,17.97,17.44,16.91,16.40];
var eventsdata = [
['渗水', -20],
null,
['漏油', -20],
highcharts中绘制离散的事件点,并在图中显示中文说明内容
最新推荐文章于 2022-05-07 18:02:45 发布
该博客介绍了如何使用Highcharts库在图表中绘制离散的事件点,例如‘渗水’和‘漏油’,并显示中文说明。通过JavaScript代码展示了如何设置x轴类别、数据点、颜色、数据标签等,使得图表能够展示日产量和含水率,并对特定事件进行高亮。
摘要由CSDN通过智能技术生成