API REFERENCE
colors
Pass as a JavaScript property. type: ReadonlyArray<string>.
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.
Configuration example
// Register sy-funnel-chart and create the element before configuring it.
chart.colors = [
"#8263d9",
"#239c91",
"#e99954",
"#d76c8f",
"#4d89c4",
"#95a551"
];