This question is locked. New answers and comments are not allowed.
Hi,
The following is the code I use. I have attached the pie chart generated by this code.
The legends are not displaying the values of the LegendName property of the colloection pieChartList.
The LegendName property will have some names like Arvind, Robin, Kumar, Mark, etc...
Now the radChart is taking the legends as the radChart1.DataManager.LabelsColumnradChart1.DataManager.LabelsColumn's data (ItemName). Is it possible to display a different text for the legend (It should be other than the ItemName)?
In the above code I am using the line
radChart1.Series[0].Name = "LegendName";
Does it have any significance?
Regards,
Arvind Robin Kumar.
The following is the code I use. I have attached the pie chart generated by this code.
ICollection<PieChartSeries> pieChartList = new List<PieChartSeries>();
GeneratePieChart generatePieChart = new GeneratePieChart();
pieChartList = generatePieChart.GenerateChartSeries();
radChart1.DataManager.DataSource = pieChartList;
radChart1.DataManager.LabelsColumn =
"ItemName";
radChart1.DataManager.ValuesXColumn =
"Value";
radChart1.IntelligentLabelsEnabled =
true;
radChart1.DataBind();
radChart1.Series[0].Name =
"LegendName";
radChart1.Series[0].Appearance.LegendDisplayMode =
ChartSeriesLegendDisplayMode.ItemLabels;
radChart1.Update();
The legends are not displaying the values of the LegendName property of the colloection pieChartList.
The LegendName property will have some names like Arvind, Robin, Kumar, Mark, etc...
Now the radChart is taking the legends as the radChart1.DataManager.LabelsColumnradChart1.DataManager.LabelsColumn's data (ItemName). Is it possible to display a different text for the legend (It should be other than the ItemName)?
In the above code I am using the line
radChart1.Series[0].Name = "LegendName";
Does it have any significance?
Regards,
Arvind Robin Kumar.