Closed otskarli closed 4 years ago
Hi @JsonGuy, The issue looks like the same here: https://github.com/highcharts/highcharts-react-native/issues/72 which was fixed by the commit.
Could you ensure that you use the newest version of wrapper?
Hi @JsonGuy, The issue looks like the same here: #72 which was fixed by the commit.
Could you ensure that you use the newest version of wrapper?
Yes, thanks
I have a similar issue where some series line disappear when chart is updated by a state update. I can see values on the tooltip when moving through the graph, but the lines just disappears. I am using the latest version, i.e., 3.1.2, and "react": "16.13.1", "react-native": "^0.62.2".
I found an issue with resetting data in chart series, i will try to do my best to explain it, it seems like, when i am using state for updating chart data, the previous data is not removed, instead it stacks at first index in chart and kind of breaks everything
Way to reproduce
Intial data:
call setState with new data:
if you call setState like this it breaks the chart
this.setState({series: data});
if you clear the chart data before applying new data like this it works
this.setState({ series: [] }, () => { this.setState({ series }) });
attached gif