Hi,
I am working in Windows Application. I need to display the chart in both PieLabelFormat.DataValue and PieLabelFormat.PercentValue format.
Please send me the source code
TIA
Maguesh
A Single Chart should display its series data in both DataValue and PercentValue format.
I tried the code like this
FormGraph.UltraChart1.PieChart.Labels.Format = PieLabelFormat.DataValue or PieLabelFormat.PercentValue
C.Prabhakar.
Thanks for your information. But this is not what I need. I need single chart to display its series data in both
PieLabelFormat.DataValue and PieLabelFormat.PercentValue format. That is its value must be displayed and also its percentage should be
displayed.
Hi Maguesh,
You can try this code as an example of using multiple chart areas:
{
ChartArea area1 = new ChartArea();
area1.Bounds = new Rectangle(0, 0, 50, 100);
area2.BoundsMeasureType = Infragistics.UltraChart.Shared.Styles.MeasureType.Percentage;
this.ultraChart1.CompositeChart.ChartAreas.Add(area1);
NumericSeries series = new NumericSeries();
series.Points.Add(new NumericDataPoint(70, "Label2", false));
this.ultraChart1.CompositeChart.Series.Add(series);
pieChart1.ChartArea = area1;
pieChart1.Series.Add(series);
pieChart2.ChartArea = area2;
PieChartAppearance pieChartAppearance = pieChart2.ChartTypeAppearance as PieChartAppearance;
pieChart2.Series.Add(series);
this.ultraChart1.CompositeChart.ChartLayers.Add(pieChart2);
}