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.

Screenshot

err-3

I made a JsFiddle: https://jsfiddle.net/dqm3t78e/ 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.

err-2

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. rb.gy/rdnfs5

0

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

0
© 2022 pullanswer.com - All rights reserved.