# candleWidth

Candlestick: the body's share of the bar pitch (0 … 1, default 0.7).

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `candleWidth` |
| HTML attribute | `candle-width` |
| Type | `number` |
| Default | `undefined` |

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

<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-candleWidth)
- [sy-ohlc-chart](https://chart.syidax.com/docs/components/ohlc.md#property-candleWidth)
