Javascript highcharts代码类似于图像

时间:2018-02-08 11:25:19

标签: javascript jquery charts highcharts chart.js

Highlight charts measure between lines

如何在x-y轴线的两点之间获得新线。如图所示,我想在highcharts,javascript中获得代表3x,4x,5x等的线条。 请点击链接以获得更好的图片。

1 个答案:

答案 0 :(得分:0)

您可以使用highcharts的绘图线功能。

plotLines: [{
    color: 'red', // Color value
    dashStyle: 'longdashdot', // Style of the plot line. Default to solid
    value: 3, // Value of where the line will appear
    width: 2 // Width of the line    
  }]

确切的联系是 - https://www.highcharts.com/docs/chart-concepts/plot-bands-and-plot-lines