highcharts / highcharts-react-native

Other
103 stars 79 forks source link

Unable to update series data. #117

Closed cupatil closed 3 years ago

cupatil commented 3 years ago

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 (

Denyllon commented 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!

cupatil commented 3 years ago

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.

Denyllon commented 3 years ago

As I mentioned above, please continue the thread on your StackOverflow's question to keep consistency of this topic.