API REFERENCE

color

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

Definition

ItemValue
JavaScript propertycolor
HTML attributePass objects, arrays, and callbacks as JavaScript properties
Typestring | ReadonlyArray<string>
Default'#2563eb'

Configuration example

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