I am using HighchartsReact and want to add a button that allows me to toggle full screen mode that is not in the exporting menu, like this.
I have found this help topic documentation but it appears I cannot access Highcharts.Chart.prototype.toggleFullscreen()
method in HighchartsReact
.
I have also found this that I can import:
import HighchartsFullscreen from 'highcharts/modules/full-screen';
But there does not seem to be any information on what it does anywhere on the internet.
I cannot find any other documentation on how to do this.
What is the correct way to handle this if at all possible?
Update
I have followed the example from the third comment below but am getting the error:
Uncaught TypeError: chart.current.chart.downloadSVG is not a function