This is a migrated thread and some comments may be shown as answers.

legend items colors are not matching

1 Answer 71 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kasun
Top achievements
Rank 1
Kasun asked on 30 Aug 2010, 07:12 AM

Hi I am using Telerik chart 2010.2.609.35 version.  I am using pie chart. In that the legend items colors are not match with the chart colors .

Here is my sample code to data bind to pie chart

            RadPieChart.DefaultSeriesDefinition = new PieSeriesDefinition();

            RadPieChart.DefaultSeriesDefinition.ItemLabelFormat = "#Y{C0}";

            SeriesMapping seriesMapping = new SeriesMapping();

            seriesMapping.ItemMappings.Add(new ItemMapping("Period", DataPointMember.LegendLabel));

            seriesMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));

            RadPieChart.SeriesMappings.Add(seriesMapping);

            RadPieChart.ItemsSource = datatableARAgeing;

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Sep 2010, 01:07 PM
Hi Kasun,

Please, find attached a sample application, which makes use of a Pie chart in a similar to your scenario and works as expected on our side. If you continue experiencing the unexpected behavior, could you, please, modify the sample, so that the problem is reproducible for our developers to investigate and provide further assistance.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Kasun
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or