Home Forums Chart Support default color hexa code

default color hexa code

Viewing 3 posts - 1 through 3 (of 3 total)
  • #27107

    When Pie chart have default color then how to get that 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

    #32733

    [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.


    Vishwas R
    Team CanvasJS

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.