# timeScale

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

Canonical: https://chart.syidax.com/docs/options/timeScale/

<a id="definition"></a>

## 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](https://chart.syidax.com/docs/types/CandlestickTimeScale.md) — Type definition

<a id="example"></a>

## Configuration example

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

- [Candlestick · Complete examples and API](https://chart.syidax.com/docs/components/candlestick.md)

<a id="related"></a>

## Related documentation

A property with the same name may have different types and defaults across charts. When using a direct tag, follow that chart's documentation below.

- [Shared facade and direct tags](https://chart.syidax.com/docs/concepts.md)
- [sy-candlestick-chart](https://chart.syidax.com/docs/components/candlestick.md#property-timeScale)
- [sy-ohlc-chart](https://chart.syidax.com/docs/components/ohlc.md#property-timeScale)
