Reputation: 55
I'm working with Highchart's Char Bar, I wonder if theres a way to show the value of an Average Line (Plot Line), show the value in 'yAxis' or on mouse hover show a dialog with the exact value of the Plot Line.
I already show the average line, but I can't read the EXACT value on the graph.
This is the PlotLines from the Highchart
plotLines: [{
color: 'red',
value: avg, // Insert your average here
width: '1',
zIndex: 2 // To not get stuck below the regular plot lines
}]
Upvotes: 2
Views: 1635
Reputation: 4835
You should be able to show a label:
plotLines: [{
color: 'red',
value: avg, // Insert your average here
width: '1',
zIndex: 2, // To not get stuck below the regular plot lines
label: {
text: avg,
textAlign: 'left',
x: -40
}
}]
Upvotes: 2