Home › forums › Feature Requests & Feedback › Colorset base on dropdown
This topic contains 6 replies, has 2 voices, and was last updated by yansonalvin97 2 months, 2 weeks ago.
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…
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.
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?
You can update color in dataSeries level based on dropdown instead of updating colorSet to achieve this.
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
Please take a look at this updated jsfiddle.
Thank you Vishwas. This is exactly what I’m looking for.
You must be logged in to reply to this topic.