Use redraw to get data from chart, Jsfiddle provided
问题 I want to add a redraw function on highchart to show a new set of data for a series, iv made the button but the code behind am struggling. HTML: <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div> <button id="button">redraw </button> JS: function loadA(chart) { chart.xAxis[0].update({ categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }); chart.yAxis[0].setTitle({ text: "kHw" }); chart.addSeries({ name: 'Rainfall11',