# colors

Pass as a JavaScript property. type: ReadonlyArray<string>.

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `colors` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `ReadonlyArray<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-funnel-chart and create the element before configuring it.
chart.colors = [
  "#8263d9",
  "#239c91",
  "#e99954",
  "#d76c8f",
  "#4d89c4",
  "#95a551"
];
```

- [Funnel · Complete examples and API](https://chart.syidax.com/docs/components/funnel.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-pie-chart](https://chart.syidax.com/docs/components/pie.md#property-colors)
- [sy-polar-chart](https://chart.syidax.com/docs/components/polar.md#property-colors)
- [sy-radar-chart](https://chart.syidax.com/docs/components/radar.md#property-colors)
- [sy-heatmap](https://chart.syidax.com/docs/components/heatmap.md#property-colors)
- [sy-calendar-heatmap](https://chart.syidax.com/docs/components/calendar-heatmap.md#property-colors)
- [sy-density-map](https://chart.syidax.com/docs/components/density-map.md#property-colors)
- [sy-spectrogram](https://chart.syidax.com/docs/components/spectrogram.md#property-colors)
- [sy-gauge-chart](https://chart.syidax.com/docs/components/gauge.md#property-colors)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/funnel.md#property-colors)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#property-colors)
- [sy-item-chart](https://chart.syidax.com/docs/components/item.md#property-colors)
- [sy-word-cloud](https://chart.syidax.com/docs/components/word-cloud.md#property-colors)
- [sy-tilemap](https://chart.syidax.com/docs/components/tilemap.md#property-colors)
- [sy-theme-river](https://chart.syidax.com/docs/components/theme-river.md#property-colors)
- [sy-surface-3d](https://chart.syidax.com/docs/components/surface-3d.md#property-colors)
- [sy-bar-3d](https://chart.syidax.com/docs/components/bar-3d.md#property-colors)
- [sy-scatter-3d](https://chart.syidax.com/docs/components/scatter-3d.md#property-colors)
