Home forums Using CanvasJS default color hexa code

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 weeks, 1 day ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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

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

You must be logged in to reply to this topic.