You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior:
When run chart.timeScale().fitContent(); => The chart change visible range 2 times, the first time is {from: 0, to: 299} and the last one is {from: 0, to: 297.5623003194888}
It happend due to: fitContent => visibleRange change => after change visibleRange => width of axis get updated => visibleRange change again which not cover the full range Expected behavior:
The final visibleRange should still show the full chart, which is {from: 0, to: 299}
More info: If you look at the last log, the logical range is changed to {from: 0, to: 294.36082474226805}. The expected behavivor should keep it to {from: 0, to: 299}
Lightweight Charts Version: 3.5.0
Steps/code to reproduce:
Actual behavior:
When run
chart.timeScale().fitContent();
=> The chart change visible range 2 times, the first time is{from: 0, to: 299}
and the last one is{from: 0, to: 297.5623003194888}
It happend due to:
fitContent
=>visibleRange
change => after changevisibleRange
=> width of axis get updated =>visibleRange
change again which not cover the full rangeExpected behavior:
The final
visibleRange
should still show the full chart, which is{from: 0, to: 299}
Screenshots:
CodeSandbox/JSFiddle/etc link:
https://codesandbox.io/s/fitcontent-with-fixed-left-and-right-50n1k?file=/src/index.js:15599-16542
The text was updated successfully, but these errors were encountered: