Home forums Using CanvasJS default color hexa code Reply To: default color hexa code

#27134

@amitkushwaha1710,

Currently, there is no documented API to fetch current colorset of dataPoints in a single series – whereas you can get color of dataSeries (incase of multiseries chart as chart.data[index].get("color")). But you can get the colors of dataPoints as chart._selectedColorSet. As this API is undocumented it might be removed in the future releases.

As this feature has been requested by many other CanvasJS users, we will consider getting current colorset as public API in the future versions.


Vishwas R
Team CanvasJS