API REFERENCE
timeScale
Candlestick (): ordinal (one slot per bar — no weekend / holiday gaps; the default) or linear (wall time).
Definition
| Item | Value |
|---|---|
| JavaScript property | timeScale |
| HTML attribute | time-scale |
| Type | CandlestickTimeScale |
| Default | undefined |
| Allowed values | linear, ordinal |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
- CandlestickTimeScale
Type definition
Configuration example
// Register sy-candlestick-chart and create the element before configuring it.
chart.timeScale = "ordinal";