I need the legend names to be populated from the ItemsSource. How can I do this?
--------------------------------
pieChart.DefaultSeriesDefinition =
new Pie3DSeriesDefinition();
pieChart.DefaultView.ChartLegend.UseAutoGeneratedItems =
true;
pieChart.DefaultView.ChartLegend.Header =
"";
pieChart.DefaultView.ChartArea.Extensions.Add(
new CameraExtension());
var data = new List<Data>
{
new Data { Name = "ABC", Amount = 1300 },
new Data { Name = "XYZ", Amount = 290 }
};
pieChart.ItemsSource = data;