You must be logged in to post your query.
Home › Forums › Chart Support › default color hexa code
Tagged: color
When Pie chart have default color then how to get that color hexa code?
@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.
chart.data[index].get("color")
chart._selectedColorSet
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
[UPDATE]
We have just released v3.2.9 Beta-1 with this feature. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.
You must be logged in to reply to this topic. Login/Register