# thickness

Set as an HTML attribute or JavaScript property. type: number.

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `thickness` |
| HTML attribute | `thickness` |
| Type | `number` |
| Default | `1` |

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

## Configuration example

```javascript
// Register sy-line-chart and create the element before configuring it.
chart.thickness = 2.5;
```

- [Line · Complete examples and API](https://chart.syidax.com/docs/components/line.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-line-chart](https://chart.syidax.com/docs/components/line.md#property-thickness)
- [sy-area-chart](https://chart.syidax.com/docs/components/area.md#property-thickness)
- [sy-column-chart](https://chart.syidax.com/docs/components/column.md#property-thickness)
- [sy-bar-chart](https://chart.syidax.com/docs/components/bar.md#property-thickness)
- [sy-pie-chart](https://chart.syidax.com/docs/components/pie.md#property-thickness)
- [sy-gauge-chart](https://chart.syidax.com/docs/components/gauge.md#property-thickness)
