setMaxOffsetRightDistance(distance) 
setMaxOffsetRightDistance set the maximum distance from the last candlestick on the chart to the rightmost side.
Reference 
typescript
(distance: number) => voidParameters 
- distanceDistance.
Returns 
setMaxOffsetRightDistance returns undefined .