# showLabels

Tilemap: render each tile's label inside the tile when it fits.

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `showLabels` |
| HTML attribute | `show-labels` |
| Type | `boolean` |
| Default | `undefined` |

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

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

## Configuration example

```javascript
// Register sy-data-zoom and create the element before configuring it.
chart.showLabels = true;
```

- [Data Zoom · Complete examples and API](https://chart.syidax.com/docs/components/data-zoom.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-waterfall-chart](https://chart.syidax.com/docs/components/waterfall.md#property-showLabels)
- [sy-tilemap](https://chart.syidax.com/docs/components/tilemap.md#property-showLabels)
- [sy-data-zoom](https://chart.syidax.com/docs/components/data-zoom.md#property-showLabels)
- [sy-navigator](https://chart.syidax.com/docs/components/navigator.md#property-showLabels)
- [sy-visual-map](https://chart.syidax.com/docs/components/visual-map.md#property-showLabels)
