Interface: SetVisibleRangeOptions
Charting Library.SetVisibleRangeOptions
Options for setting the visible range.
Setting applyDefaultRightMargin or percentRightMargin will result in the to value
of the range specified being ignored and the timestamp of the latest bar on the chart
being used instead.
Properties
applyDefaultRightMargin
• Optional applyDefaultRightMargin: boolean
Apply the default right offset (margin) when setting the range.
percentRightMargin
• Optional percentRightMargin: number
Apply a percentage right offset (margin) when setting the range.
rejectByTimeout
• Optional rejectByTimeout: number
In the current implementation, we cannot capture all errors during the SetVisibleRange process,
which means we cannot guarantee that the process will always be resolved or rejected.
To address this issue, you can use the rejectByTimeout option to ensure rejection after a specified timeout.