Home › forums › Chart Support › default color hexa code
When Pie chart have default color then how to get that color hexa code?
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.
You must be logged in to reply to this topic.