79550298

Date: 2025-04-02 09:57:15
Score: 0.5
Natty:
Report link

By default tooltip aggregates the data from one xAxis, but you can override it with a tooltip.formatter, see the link to the API: https://api.highcharts.com/highcharts/tooltip.formatter

The starting point can be like this:

tooltip: {
    shared: true,
    formatter: function () {
        let tooltipText = '<b>' + this.x + '</b>';
        this.points.forEach(point => {
            tooltipText += '<br/>' + point.series.name + ': ' + point.y;
        });
        return tooltipText;
    }
}

Please see a simplified config, where you can get the shared tooltip for multiple axes, I trust you will be able to adjust it for your project: https://jsfiddle.net/BlackLabel/pvr1zg26/

Reasons:
  • RegEx Blacklisted phrase (1): see the link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrzej Bułeczka