0

How can I export the chart with all tooltip displaying in high charts as a image, pdf & jpeg.

here is the code for tooltip:-

tooltip: {
    hideDelay: 0,
    headerFormat: '',
    enabled: true,
    split: true,
    animation: false,
    valueDecimals: 2,
    outside: true,
    shared: false,
},

Thanks for the help.

enter image description here

Parth Raval
  • 4,097
  • 3
  • 23
  • 36

1 Answers1

0

Try to use this approach:

 exporting: {
    chartOptions: { // specific options for the exported image
      chart: {
        events: {
          load: function() {
            const chart = this;

            chart.tooltip.refresh(chart.series[0].data[0]);
          }
        }
      }
    }
  },

Demo: https://jsfiddle.net/BlackLabel/50vz7edt/

Sebastian Wędzel
  • 11,417
  • 1
  • 6
  • 16