Home Forums Feature Requests & Feedback Colorset base on dropdown

Colorset base on dropdown

Viewing 7 posts - 1 through 7 (of 7 total)
  • #20624

    Hi canvas js developers, is it possible that every time I choose on the drop down list, the color set for graph rendered is also change? Thank you very much…

    #20629

    @yansonalvin97,

    You can update all available chart-options dynamically. Just like the way you were able to change chart-type from dropdown you can change colorset aswell. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    #20633

    Hi Vishwas, thanks for the reply, however I want to customize the color for each drop down list, for example drop down list 1 is color red, drop down list 2 is blue and so on. How can I achieve that?

    #20641

    @yansonalvin97,

    You can update color in dataSeries level based on dropdown instead of updating colorSet to achieve this.


    Vishwas R
    Team CanvasJS

    #20645

    Hi Vishwas, Can you look on my jsfiddle. My goal here is when I choose the pie chart on the drop down list, the corresponding color rendered in the column chart is also rendered in the pie graph? For example “CAHS” is rendered as color pink in the column chart, Now, when I choose pie chart “CAHS” must be pink also in color, the same in “CBA” it is color yellow, it must be rendered also as yellow in pie chart. Can you help me..
    You already provided me with the color property in dataSeries however, I cant figure it out. Please help

    #20647

    @yansonalvin97,

    Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    #20648

    Thank you Vishwas. This is exactly what I’m looking for.

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

You must be logged in to reply to this topic.