Hello,
What is the best approach for assigning specific colors to specific XamPieChart slices? For example, the "On Time" slice should always be green, and the "Late" slice should always be red. If I simply declare a BrushCollection in XAML, then this works only if all possible data points are present, but if the "On Time" slice is empty, then the "Late" slice becomes green - wrong!. I have to avoid this scenario...each slice should have one and only one color it can use.
Thanks for your help!
Hi Francis,
I looked into this a bit and unfortunately there is no easy way to do this. The source code is specifically setting the background of the pie slice every time it sets the appearence. This will override any bindings or styles that are set. The only way I could get this to work was to handle the slice's LayoutUpdated event and everytime the layout updates I rebind the Slice to the data's Color property. It's a very hacky way to do this but it's the only way I found that works given the current limitations.
I've determined this to be a new feature request and have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI13050002.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Hello Rob!
Do you have any updated information on the product idea PI13050002? It would be great if the slices could be set to a specific color - e.g. by adding ColorMemberPath Property to the XamPieChart Definition.
Regards
Hi grubarec,
This product idea has not been implemented yet. We've since moved to a new system for entering product ideas so I suggest that you head over to the new site and add this idea. http://ideas.infragistics.com/
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea. - Notifications whenever new information regarding your idea becomes available. - Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time. - Allow you to shape the future of our products by requesting new controls and products altogether. - You and other developers can discuss existing product ideas with members of our Product Management team.
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Hi dvsegmbh,
I saw you were able to resolve your issue in a different thread. I'm posting a link to that thread in case anyone else needs help with this. http://es.infragistics.com/community/forums/p/89637/442977.aspx
Hi, I have added this solution to my PieChart and Doughnut chart control, but it is not working for the FunnelCHart.
Can you suggest a solution for the funnel control slice background change?