Hi,Is there a way to show Cumulative Percent on a pareto chart? I would like to show the Cumulative Percent on the line of the pareto chart.
I only show the value,but not the Cumulative Percent 100%Thanks
very good.thank you.
protected void Page_Load(object sender, EventArgs e)
{
this.UltraChart1.ChartType = ChartType.ParetoChart;
this.UltraChart1.DataSource = DemoTable.AllPositive();
this.UltraChart1.DataBind();
this.UltraChart1.FillSceneGraph += new FillSceneGraphEventHandler(UltraChart1_FillSceneGraph);
}
private void UltraChart1_FillSceneGraph(object sender, FillSceneGraphEventArgs e)
List<Primitive> primitives = new List<Primitive>();
foreach (Primitive primitive in e.SceneGraph)
Polyline polyline = primitive as Polyline;
if (polyline == null)
continue;
foreach (DataPoint dataPoint in polyline.points)
double value = Math.Round((double)dataPoint.Value);
string strValue = string.Format("{0}%", value);
Ellipse ellipse = new Ellipse(dataPoint.point, 20);
ellipse.PE = new PaintElement(Color.Yellow);
primitives.Add(ellipse);
Text text = new Text(dataPoint.point, strValue);
text.labelStyle.HorizontalAlign = StringAlignment.Center;
text.labelStyle.VerticalAlign = StringAlignment.Center;
primitives.Add(text);
foreach (Primitive primitive in primitives)
e.SceneGraph.Add(primitive);
I answered this in wrong thread. Look at this:
http://forums.infragistics.com/forums/p/26349/222809.aspx#222809
Hi, I have read the node. but it only show value but not Percent.
I hope it can show the Percent on the line .
How to do ? tks
http://forums.infragistics.com/forums/p/26349/97967.aspx#97967