Is it possible to add the plot line to heat map in Highcharts? So I need to add the plot line for specific time on X axis in heat map like this.
Yes, it's possible. Just don't forget to set zIndex, which by default is below series. See demo: http://jsfiddle.net/Zg325/
yAxis: {
title: {
text: null
},
labels: {
format: '{value}:00'
},
plotLines: [{
value: 9,
color: '#FF0000',
width: 2,
zIndex: 10
}],
minPadding: 0,
maxPadding: 0,
startOnTick: false,
endOnTick: false,
tickPositions: [0, 6, 12, 18, 24],
tickWidth: 1,
min: 0,
max: 23
},
Note: In your example, chart has set inverted: true, to yAxis becomes horizontal one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With