I want to display table and its chart using toggle button. Default it should disply chart, when I click button, it should change to table view. On first click it works but doesn't work from second click.
I have created the codesandbox project. CodeSandbox
What mistake have I done in this code.
Dynamic change of the
showTable
option does not change the display of the table. You need to toggle the containers visibility:Live demo: https://codesandbox.io/s/l4x11ykm67
API Reference: https://api.highcharts.com/highcharts/exporting.showTable