# bandwidth

Density map: the bandwidth — a number (both axes), `"x,y"`, `{ x, y }`, or `auto` (Silverman's rule).

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `bandwidth` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `DensityMapBandwidthInput` |
| Default | `undefined` |

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

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

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

## Configuration example

```javascript
// Register sy-density-map and create the element before configuring it.
chart.bandwidth = 9;
```

- [Density Map · Complete examples and API](https://chart.syidax.com/docs/components/density-map.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-density-map](https://chart.syidax.com/docs/components/density-map.md#property-bandwidth)
