Closed cupatil closed 3 years ago
Hi @cupatil ,
Thank you for the report. I see you've also put your question on StackOverflow, so please continue the thread there. I will test your case as soon as possible. Here is related link:https://stackoverflow.com/questions/65235495/trying-to-update-high-chart-data
Kind regards!
Sure @Denyllon I have also tried the same with the functional component, Series data are updated but not able to plot the graph line properly. Added data series in question also. Please help me out.
As I mentioned above, please continue the thread on your StackOverflow's question to keep consistency of this topic.
I am trying to update the data series on the update button by providing new series. As the result, the new series will be a plotting along with the old series.
And After plotting the new series, the values on are X-axis is clear up. Here I Am attaching the code snippet please have look.
Update Function:
updateSeries = () => { this.setState({ chartOptions: { series: [ { showInLegend: false, color: '#FF0000', data: this.props.data.slice(0, 15),} ] } }) }
Graph Render code:
`render() { return (
); }`
code file: https://gist.github.com/cupatil/da00b0ab0866e3a4f9306f0425e92582