Home forums Using CanvasJS How to set color none in pie chart

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  Priyanka M S 4 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21833

    nilayy1234
    Member

    `type: “pie”,
    color: “none”,
    legendText: “Northwest_Monsoon”,
    showInLegend: true,

    This is my pie chart can I set color to something none and it should show default colors of pie when I am passing none it is showing blank

    #21841

    Vulpe
    Member

    If you get have color as “none” on the pie chart it will make everything invisible.
    Try deleting the ‘color: “none”,’ line that should show default colors.

    #21844

    Priyanka M S
    Member

    @nilayy1234,

    Setting color:"none" overrides the default color of dataPoints and hence it’s blank. Instead, you set color:null, for default colors.

    __
    Priyanka M S
    Team CanvasJS

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

You must be logged in to reply to this topic.