# color

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

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `color` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `string \| ReadonlyArray<string>` |
| Default | `'#2563eb'` |

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

## Configuration example

```javascript
// Register sy-visual-map and create the element before configuring it.
chart.color = [
  "#eee6ff",
  "#8263d9",
  "#34265d"
];
```

- [Visual Map · Complete examples and API](https://chart.syidax.com/docs/components/visual-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-line-chart](https://chart.syidax.com/docs/components/line.md#property-color)
- [sy-area-chart](https://chart.syidax.com/docs/components/area.md#property-color)
- [sy-column-chart](https://chart.syidax.com/docs/components/column.md#property-color)
- [sy-bar-chart](https://chart.syidax.com/docs/components/bar.md#property-color)
- [sy-scatter-chart](https://chart.syidax.com/docs/components/scatter.md#property-color)
- [sy-bubble-chart](https://chart.syidax.com/docs/components/bubble.md#property-color)
- [sy-radar-chart](https://chart.syidax.com/docs/components/radar.md#property-color)
- [sy-lollipop-chart](https://chart.syidax.com/docs/components/lollipop.md#property-color)
- [sy-dumbbell-chart](https://chart.syidax.com/docs/components/dumbbell.md#property-color)
- [sy-tornado-chart](https://chart.syidax.com/docs/components/tornado.md#property-color)
- [sy-dot-plot-chart](https://chart.syidax.com/docs/components/dot-plot.md#property-color)
- [sy-variwide-chart](https://chart.syidax.com/docs/components/variwide.md#property-color)
- [sy-marimekko-chart](https://chart.syidax.com/docs/components/marimekko.md#property-color)
- [sy-pareto-chart](https://chart.syidax.com/docs/components/pareto.md#property-color)
- [sy-histogram-chart](https://chart.syidax.com/docs/components/histogram.md#property-color)
- [sy-error-bar-chart](https://chart.syidax.com/docs/components/error-bar.md#property-color)
- [sy-stem-leaf-chart](https://chart.syidax.com/docs/components/stem-leaf.md#property-color)
- [sy-gauge-chart](https://chart.syidax.com/docs/components/gauge.md#property-color)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/funnel.md#property-color)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#property-color)
- [sy-pictorial-chart](https://chart.syidax.com/docs/components/pictorial.md#property-color)
- [sy-treemap](https://chart.syidax.com/docs/components/treemap.md#property-color)
- [sy-sunburst](https://chart.syidax.com/docs/components/sunburst.md#property-color)
- [sy-icicle](https://chart.syidax.com/docs/components/icicle.md#property-color)
- [sy-dendrogram](https://chart.syidax.com/docs/components/dendrogram.md#property-color)
- [sy-sankey](https://chart.syidax.com/docs/components/sankey.md#property-color)
- [sy-chord](https://chart.syidax.com/docs/components/chord.md#property-color)
- [sy-network-graph](https://chart.syidax.com/docs/components/network-graph.md#property-color)
- [sy-parallel-coordinates](https://chart.syidax.com/docs/components/parallel-coordinates.md#property-color)
- [sy-geo-map](https://chart.syidax.com/docs/components/geo-map.md#property-color)
- [sy-gantt-chart](https://chart.syidax.com/docs/components/gantt.md#property-color)
- [sy-visual-map](https://chart.syidax.com/docs/components/visual-map.md#property-color)
