# categories

Radar category spoke labels (property).

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `categories` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `string[]` |
| 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-polar-chart and create the element before configuring it.
chart.categories = [
  "N",
  "NE",
  "E",
  "SE",
  "S",
  "SW",
  "W",
  "NW"
];
```

- [Polar · Complete examples and API](https://chart.syidax.com/docs/components/polar.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-polar-chart](https://chart.syidax.com/docs/components/polar.md#property-categories)
- [sy-radar-chart](https://chart.syidax.com/docs/components/radar.md#property-categories)
- [sy-lollipop-chart](https://chart.syidax.com/docs/components/lollipop.md#property-categories)
- [sy-dumbbell-chart](https://chart.syidax.com/docs/components/dumbbell.md#property-categories)
- [sy-tornado-chart](https://chart.syidax.com/docs/components/tornado.md#property-categories)
- [sy-dot-plot-chart](https://chart.syidax.com/docs/components/dot-plot.md#property-categories)
- [sy-variwide-chart](https://chart.syidax.com/docs/components/variwide.md#property-categories)
- [sy-marimekko-chart](https://chart.syidax.com/docs/components/marimekko.md#property-categories)
- [sy-pareto-chart](https://chart.syidax.com/docs/components/pareto.md#property-categories)
- [sy-pictorial-chart](https://chart.syidax.com/docs/components/pictorial.md#property-categories)
- [sy-visual-map](https://chart.syidax.com/docs/components/visual-map.md#property-categories)
