# session

Candlestick (): the exchange session the labels read — `24x7`, `us-equity`, or a JSON object `{ timezone, sessions, holidays, closedWeekdays }`.

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `session` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `CandlestickSessionInput \| string` |
| Default | `undefined` |

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

- [CandlestickSessionInput](https://chart.syidax.com/docs/types/CandlestickSessionInput.md) — Type definition

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

## Configuration example

```javascript
// Register sy-stock-chart and create the element before configuring it.
chart.session = "24x7";
```

- [Stock Chart · Complete examples and API](https://chart.syidax.com/docs/components/stock-chart.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-session)
- [sy-ohlc-chart](https://chart.syidax.com/docs/components/ohlc.md#property-session)
- [sy-stock-chart](https://chart.syidax.com/docs/components/stock-chart.md#property-session)
- [sy-stock-volume](https://chart.syidax.com/docs/components/stock-volume.md#property-session)
- [sy-stock-flags](https://chart.syidax.com/docs/components/stock-flags.md#property-session)
