Home forums Using CanvasJS default series color

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20574

    larry
    Member

    Hello,

    is there a way to get the series color that canvasjs picked?
    (if I didnt set series color, canvasjs set default color), how can I get this color?

    Thanks,
    Larry

    #20578

    Vishwas R
    Keymaster

    Larry,

    Its not possible to get dataSeries color using get method as of now.

    However you can get the colorSet of the theme being used with the help of chart._selectedColorSet (which is an interval variable). Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.