In a React Redux app I have a large array containing time series data (about 10k data points). The data is supplied by the redux store. The app uses highcharts-react-official 2.x.x
. The large array is frequently updated by appending new data points (append-only, existing array element are immutable).
Because of these updates it seems the chart is every time fully rendered. How can I avoid this?
const options = {
series: [
{
type: 'line',
data: objectFromReduxStore.map(p => ([p.time.toMillis(), p.value])),
}
]
}
...
<HighchartsReact
highcharts={Highcharts}
options={options}
containerProps={{style: {height: '300px', width: '100%'}}}
/>