Hi all,
I have a pie charts where I need to display 3 pie charts beside each other as shown in the picture.
As you can see from the above two charts one will show the month's summary and the other will show that of year's data. If we can see the legend of Month the item "aaa" will be green in color. While the same item in Year's chart is blue in color. Is there any way to control this, as I want to place these charts side by side. Also, in Chart 2 you can see two items in yellow and two items in blue. As the end user will be confused which item is what. I am using the infragistics 2007 version. Instead of displaying more for legend is there anyway to automatically increase the size of the legend based on the data is shows. Please let me know this ASAP.
Thanxs,
It Helps lot..
Sure, you can use these links:https://es.infragistics.com/help/aspnet/chart-custom-skins-and-paint-elementshttps://es.infragistics.com/help/aspnet/chart-assign-custom-colors-to-chart-elements
Max, the links don't work. can you please direct me to the updated links?
Hi Max,
Thanks for the reply. The links really helped me.
Thanks.
It's very unusual for our charts to use the same color for multiple pie slices. There must be something set in your project that does this. The default behavior of the chart is to use non-repeating colors.
If you want to assign specific colors you can do so in a number of ways. The simplest would be to set a color model with an array of colors. Here are help links with more information about color models:https://es.infragistics.com/help/aspnet/chart-custom-skins-and-paint-elementshttps://es.infragistics.com/help/aspnet/chart-assign-custom-colors-to-chart-elementsAs for the legend, unfortunately, there's no way to automatically resize it based on data, but you can programmatically estimate how much data you will have in the legend and set chart legend's SpanPercentage property accordingly.