ReactJs HighCharts toggle table and chart not updating
问题 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. 回答1: Dynamic change of the showTable option does not change the display of the table. You need to toggle the containers visibility: Highcharts.Chart.prototype.viewData = function () { $(this.renderTo)