Good Day!
Is it possible using the chart.getSVG method to export all columns and even those that have been hidden by the user?
My sandbox: https://codesandbox.io/s/highcharts-rea ... ked-rfopj0
For example, if I hide Series 1 and Series 2 and click the "EXPORT AND INSERT SVG" button, I want all 3 columns to be exported, not just one.
I tried to add this code, but now I get bugs when I try to hide/show columns. As I understand it, I shouldn't mutate chart.series but I don't know how to get around it.
const exportSVG = () => {
const series = [...chartRef.current.chart.series].map(
(item) => (item.visible = true)
);
const exportedSvg = chartRef.current.chart.getSVG();
setSvg(exportedSvg);
};
I will be very grateful for your advice.