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
const{ from, to }=range();// timestamp valuesconstbars=(to-from)/interval.IntervalMs;constchartWidth=this.getChartWidth();// use clientWidth to get chart width if responsive or fixed valueconstbarSpace=chartWidth/bars;this.i.setBarSpace(Math.max(Math.min(barSpace,50),1));// respect constraintsthis.i.scrollToTimestamp(to);
If you using markers timestamp it is good idea to add padding on both sides so it looks nice.
Code simplified and do not check if from and to exists in data list. You should check it if necessary.
Feature Description
It would be super helpful to add function setVisibleRange(start, end).
I'm showing entry and exits on the chart and i would like to be able to focus exact range(trade) so user don't have to scroll every time.
To Do
The text was updated successfully, but these errors were encountered: