series.colorField String (default: "color")

The data item field which contains the series color.

The colorField option is supported when series.type is set to "bar", "column", "rangeBar", "rangeColumn", "bubble", "donut", "pie", "candlestick", "ohlc" or "waterfall".

Example - set the chart series color field

<div id="chart"></div>
  series: [{
    colorField: "valueColor",
    data: [
     { value: 1, valueColor: "red" },
     { value: 2, valueColor: "green" }
In this article
Not finding the help you need? Improve this article