Edit this page

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" }
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article