HighCharts xAxis label above tooltip

0

I'm having a problem, where the graph tooltip is always getting below the xAxis label.

I would like the tooltip to be over the label.

link

    
asked by anonymous 14.03.2017 / 18:36

1 answer

0

It depends a lot on what you want to do with the tooltip.

You may want the tooltip to follow the mouse, for example:

tooltip: {
    followPointer: true,
    pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.0f}%)<br/>'
}

I saw that you were already using shared , which allows any area of the graph to capture the tooltip by moving the mouse . You can use positioner to define the static / fixed position where the tooltip will look like:

tooltip: {
    positioner: function () {
        return { x: 80, y: 50 };
    }
}
    
14.03.2017 / 19:55