Highstocks - Place a line between columns when using the datetime axis

Is it possible to place a row between columns when using the datetime axis?

http://jsfiddle.net/ozke/30go12jy/4/

Relevant Code:

chart: { type: 'column' }, xAxis: { type: 'datetime', gridLineWidth: 1, gridLineColor:'#FF0000', gridZIndex: 4 /* grid line styles */ }, plotOptions: { column: { grouping: false, borderWidth: 0, groupPadding: 0, pointPadding: 0 } } 
  • I initially tried to do something similar here , but this question has changed a bit elsewhere. So I ask again.
+2
source share
1 answer

You can use plotLines as follows:

 plotLines: [{ value: Date.UTC(2014, 1, 15), width: 1, color: 'red', dashStyle: 'dash', label: { text: 'value', align: 'right', y: 20, x: 0 } }, { value: Date.UTC(2014, 2, 17), width: 1, color: 'red', dashStyle: 'dash', label: { text: 'value', align: 'right', y: 20, x: 0 } }, ... ] 

Here demo

+2
source

Source: https://habr.com/ru/post/979842/


All Articles