'React Stockcharts crashes when width and height are small

When i just inspect the page or on the smaller device screen, the error occuring :

"Showing 0 datapoints, review the 'xExtents' prop of ChartCanvas"

I searched from the forums and documents and applied the some solutions like :

show loading icon just data being available but it is not related with it and when either data is not null or higher then 1, it is showing the the this error and my app is just crashes.

Can anyone know the solution or trick to solve this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source