# densityUnit

Density map: how densities read — the cell's mass, or mass per unit area ().

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `densityUnit` |
| HTML attribute | `density-unit` |
| Type | `DensityMapUnitInput` |
| Default | `undefined` |
| Allowed values | `mass`, `per-area` |

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

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

<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-densityUnit)
