void ctr_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e) { List list = new List(); foreach (Primitive item in e.SceneGraph) { Box pl = item as Box; if (pl != null && (NumericDataPoint)pl.DataPoint != null && ((NumericDataPoint)pl.DataPoint).Value != double.NaN) { Text txt = new Text(); SetChartText(txt, ((NumericDataPoint)pl.DataPoint).Value); txt.bounds.Location = new Point(pl.rect.X + (pl.rect.Width / 2 - 5), pl.rect.Y + (pl.rect.Height / 2)); list.Add(txt); } } foreach (Primitive it in list) e.SceneGraph.Add(it); } private void SetChartText(Text text, double value) { text.SetLabelStyle(new LabelStyle() { Font = ChartText.Font.Font, FontColor = ChartText.Color, }); string txt = String.Format("{0:" + ChartText.ItemFormat.ChangeSignals(new List>() { new KeyValuePair('.',','), new KeyValuePair(',','.') }) + "}", value); text.SetTextString(txt); }