Highcharts tooltip for all series

user8072524

Here is my highcharts code which is working fine and tooltip shows only when hover one series, but I need to change it so that the same tooltip shows when hover any series in the chart, any help please. [jsfiddle][1]

 [1]: https://jsfiddle.net/khalifa/kktwdwf6/
Deep 3015

tooltip will be as

tooltip: {
    useHTML: true,// enables html property
    shared: true,// enables shared tooltip
    formatter: function() {
      var s = '<b>' + this.x + '</b><br>';

      $.each(this.points, function(e) {
        //console.log(this.point.marker.symbol)

        var str = this.point.marker.symbol;
        if (str != 'circle') {
          str = str.substring(0, str.length - 1);
          var img = str.slice(4);
          var w = this.y;
          w = w - 20;
          n = '<img src ="' + img + '"/><br>'
        } else {
          n = '●';
        }
        s += 'Question ID: <b>' + this.series.name + '</b><br/>' +

          n + '</b><br/>';
      });

      return s;
    },
  },

Also you have to define markers with each data point

     data: [{
    y: 11.7,
    marker: {
      symbol: 'circle'
    }
  }, {
    y: 11.8,
    marker: {
      symbol: 'circle'
    }
  }],

Fiddle demo

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How can I apply different background color to entire tooltip for different series in highcharts

From Dev

Format tooltip numbers in Highcharts

From Dev

Hide/show all series in Highcharts?

From Dev

HighCharts: Use shared tooltip only when series overlap

From Dev

Highcharts series name with '<' not rendered in tooltip

From Dev

How to get multiple series data in tooltip highcharts?

From Dev

How do I hide a Highcharts series from the chart, but always show it in the tooltip?

From Dev

Link inside of a Highcharts tooltip

From Dev

Weird character in front of Highcharts tooltip series names

From Dev

Highcharts - Series tooltip doesn't work when plotting lines that zigzag on the x axis

From Dev

Highcharts shared tooltip between charts with multiple series and shared tooltip

From Dev

How do you add to tooltip, a series in HighCharts?

From Dev

How to hide one series data info in tooltip using highcharts

From Dev

Highcharts shared tooltip for line series and scatter plot not working

From Dev

Highcharts - Aligning dateTime series for shared tooltip

From Dev

Highcharts custom tooltip

From Dev

highcharts tooltip wrong date

From Dev

Highcharts: Format series names in tooltip

From Dev

Always showing tooltip on all columns in Highcharts

From Dev

Highcharts (rCharts) onclick tooltip

From Dev

Highcharts - tooltip using click event doesn't appear all times

From Dev

Format highcharts tooltip

From Dev

Highcharts-How to align shared tooltip on the top of column in multiple series column chart?

From Dev

Weird character in front of Highcharts tooltip series names

From Dev

Highcharts highstock tooltip series order

From Dev

Highcharts column chart returning incorrect series index on click when using shared tooltip

From Dev

Highcharts shared tooltip(for line series) - Change on hover ACCORDING TO PLOTBAND

From Dev

Highcharts-How to remove tooltip, one of data in series

From Dev

Get all the series related to particular category in highcharts

Related Related

  1. 1

    How can I apply different background color to entire tooltip for different series in highcharts

  2. 2

    Format tooltip numbers in Highcharts

  3. 3

    Hide/show all series in Highcharts?

  4. 4

    HighCharts: Use shared tooltip only when series overlap

  5. 5

    Highcharts series name with '<' not rendered in tooltip

  6. 6

    How to get multiple series data in tooltip highcharts?

  7. 7

    How do I hide a Highcharts series from the chart, but always show it in the tooltip?

  8. 8

    Link inside of a Highcharts tooltip

  9. 9

    Weird character in front of Highcharts tooltip series names

  10. 10

    Highcharts - Series tooltip doesn't work when plotting lines that zigzag on the x axis

  11. 11

    Highcharts shared tooltip between charts with multiple series and shared tooltip

  12. 12

    How do you add to tooltip, a series in HighCharts?

  13. 13

    How to hide one series data info in tooltip using highcharts

  14. 14

    Highcharts shared tooltip for line series and scatter plot not working

  15. 15

    Highcharts - Aligning dateTime series for shared tooltip

  16. 16

    Highcharts custom tooltip

  17. 17

    highcharts tooltip wrong date

  18. 18

    Highcharts: Format series names in tooltip

  19. 19

    Always showing tooltip on all columns in Highcharts

  20. 20

    Highcharts (rCharts) onclick tooltip

  21. 21

    Highcharts - tooltip using click event doesn't appear all times

  22. 22

    Format highcharts tooltip

  23. 23

    Highcharts-How to align shared tooltip on the top of column in multiple series column chart?

  24. 24

    Weird character in front of Highcharts tooltip series names

  25. 25

    Highcharts highstock tooltip series order

  26. 26

    Highcharts column chart returning incorrect series index on click when using shared tooltip

  27. 27

    Highcharts shared tooltip(for line series) - Change on hover ACCORDING TO PLOTBAND

  28. 28

    Highcharts-How to remove tooltip, one of data in series

  29. 29

    Get all the series related to particular category in highcharts

HotTag

Archive