I am currently utilizing the Highcharts library to create visually appealing charts. When exporting data into a CSV file from a Pie chart, I would like to prevent legends/series data from being included.
Here is what I have attempted:
...
plotOptions: {
pie: {
point: {
events: {
legendItemClick: function(e) {
const chart = this,
series = chart.series;
debugger;
console.log(series[1])
series[1].update({
type: 'pie',
showInLegend : false
})
}
}
}
}
}
...
However, I encountered an issue where series[1] was undefined in this scenario. Additionally, in other chart types such as Column, Bar, and Line, automatically disabled series/legends do not appear in the CSV file.
Thank you in advance for any assistance provided.