API REFERENCE

timeScale

Candlestick (): ordinal (one slot per bar — no weekend / holiday gaps; the default) or linear (wall time).

Definition

ItemValue
JavaScript propertytimeScale
HTML attributetime-scale
TypeCandlestickTimeScale
Defaultundefined
Allowed valueslinear, ordinal

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.

Configuration example

javascript
// Register sy-candlestick-chart and create the element before configuring it.
chart.timeScale = "ordinal";