API REFERENCE

colors

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

Definition

ItemValue
JavaScript propertycolors
HTML attributePass objects, arrays, and callbacks as JavaScript properties
TypeReadonlyArray<string>
Defaultundefined

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

Configuration example

javascript
// Register sy-funnel-chart and create the element before configuring it.
chart.colors = [
  "#8263d9",
  "#239c91",
  "#e99954",
  "#d76c8f",
  "#4d89c4",
  "#95a551"
];