2
votes

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
}]

enter image description here

1

1 Answers

2
votes

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
    }
}]

Reference