Posts: 1
Joined: Sat Feb 03, 2024 9:03 pm

Map Filters Not Applying to Exports

We were looking at this implementation of highcharts and noticed when you try to export the map with any selected filters from the legend, the exported map (svg, print, etc.) doesn't reflect the filters and the main map window resets the colors even though the legend filters are selected. Any thoughts on how to fix this?
Posts: 1075
Joined: Fri Dec 16, 2022 11:45 am

Re: Map Filters Not Applying to Exports


Welcome to our forum & thanks for the question!

You're right - the state of the legend is not persisted throughout exports - the chart is being exported in its most recent state, but it does not include user interactions like hover, click, etc.

If you'd like to export a chart with a different config than the one applied to the chart shown on the screen, you could implement your custom logic which would pin into the exportChart method or update the chart right before this method gets called.

Here's a simple demo:

Please do not hesitate to ask in case you have any more questions.

Best regards!
Highcharts Developer

Return to “Highcharts Maps”