Highcharts Xaxis label on top of tooltip

Asked

Viewed 120 times

0

1 answer

0


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

You might want to tooltip 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 you were already using shared, which allows any area of the graph to capture the tooltip through the movement of mouse.

You can use positioner to define the static/fixed position where the tooltip will stay:

tooltip: {
    positioner: function () {
        return { x: 80, y: 50 };
    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.