Home Forums Chart Support Hide datapoints programmatically Reply To: Hide datapoints programmatically

#21978

@sonerb,

Once the chart is rendered, you can get dataSeries color using get method as shown in the code snippet below –

for(var i = 0; i < chart.data.length; i++) {
   console.log(chart.data[i].get("color"))
}

Please take a look at this jsfiddle.

Show DataSeries Color


Vishwas R
Team CanvasJS