Lightweight Charts Version: 4.0

Every now and then the chart is all zoomed in and the price scale is inverted on mobile. The chart does not have set the setting to invert by default. The error seems to happen all the time on very narrow screens.



I made a JsFiddle: Just resize the right window that show the chart so it is really narrow. Then play the fiddle and you should see something that looks like the screenshot above.


You can see the error on my website as well. It seems to only happen when in mobile mode. Just refresh the page a few times to load random charts and the error should show up within 10 refreshes.


I figured out that my price data were string and not numbers. Seems to work fine now!

© 2022 - All rights reserved.