'Why I can't dowload PDF or PNG file ??, HightChart

Why I can't download PDF or PNG file ?? I'm doing drilldown-chart When I Show data-table: load: Highcharts.drawTable I can download PDF and PNG file But when I change

load() {
                    if (this.renderer.forExport) {
                        Highcharts.drawTable(this);
                    }
                }

I can't download PDF and PNG file.

This is link my code on Google Document



Solution 1:[1]

I reproduced your code and found the following errors:

  • You should change this part of the code if you don't use the xAxis category type:

    chart.xAxis[0].categories.forEach(function(name, i) {
    renderer.text(
        name,
        cellLeft + cellPadding,
        tableTop + (i + 2) * rowHeight - cellPadding
      )
      .css({
        fontWeight: 'bold'
      })
      .add();
    });
    
  • valueSuffix = ' °C' was commented

Demo: https://jsfiddle.net/BlackLabel/Lxtekgd9/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sebastian W?dzel