Home forums Feature Requests & Feedback Colorset base on dropdown

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  yansonalvin97 4 months, 2 weeks ago.

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

    Vishwas R
    Keymaster

    @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

    Vishwas R
    Keymaster

    @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

    Vishwas R
    Keymaster

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