Skip to main content

Interface: TimeScaleOptions

Charting Library.TimeScaleOptions

Widget Constructor option (time_scale) to add more/less on screen

Properties

min_bar_spacing

Optional min_bar_spacing: number

Minimum allowed bar spacing. Should be greater than 0.

time_scale: {
min_bar_spacing: 0.01
},

Note that using this property forces the library to perform more calculations. This may lead to the following issues:

  • The chart UI may update slowly because the browser thread is blocked.

  • The browser may use excessive memory or even run out of memory due to the large number of bars on the screen.

Use this option carefully and only when necessary.