react-stockcharts icon indicating copy to clipboard operation
react-stockcharts copied to clipboard

Error when updating chart with xAxis data outside previous range

Open flolege opened this issue 4 years ago • 0 comments

The error: image

My Code:

image

The log:

image

My findings:

It seems that every time the data is updated with xAxis values outside the previous range, this error appears. There must be something like a cache not updating in time.

Example: My previous xAxis date range was Beginning of June 2020 until today. Then my update - as you can see in the logs - tries to set the dates to June 20 1970 - June 20 2021.

Expected behaviour: The chart updates correctly and shows the xAxis range 1970 - 2021.

A workaround would also help - like completely resetting the chart component so that this cache or whatever it is is really resetted.

It would be appreciated a lot!

flolege avatar Jun 20 '20 09:06 flolege