Hi Team,
I developed a piechart using RadChart control and my PieChart having 14 items by default it specify colors for Legends and in this case 2 or 3 Legends have same colors.
I would like to specify 14 deffirent colors in code behind file?how can I achieve this?
I am using following code.
I developed a piechart using RadChart control and my PieChart having 14 items by default it specify colors for Legends and in this case 2 or 3 Legends have same colors.
I would like to specify 14 deffirent colors in code behind file?how can I achieve this?
I am using following code.
rcBilledRevenueProductPieChart.ItemsSource = null;
rcBilledRevenueProductPieChart.DefaultView.ChartArea.DataSeries.Clear();
rcBilledRevenueProductPieChart.PaletteBrushes.Clear();
rcBilledRevenueProductPieChart.SeriesMappings.Clear();
DataSeries series = new DataSeries();
series.Definition = new PieSeriesDefinition();
foreach (ContributeMargin obj in e.Result.ToList())
{
series.Add(new DataPoint(obj.ContributionMarginBudget) { LegendLabel = obj.ProductName });
}
rcBilledRevenueProductPieChart.DefaultView.ChartArea.DataSeries.Add(series);