Hello Support,
We are using V10.3 WinChart control in our applicaiton. We want to display exponential values on the X axis i.e. say if the value on X axis is 833333 then we need to display the value as 8.33E+05. Is there any property or any other way to display exponential values on the X axis of the chart control. Looking forward to your reply.
Hi,
At that moment we have not such property, but maybe one possible approach to acheive desired result could be :
private void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e) { foreach (Primitive pr in e.SceneGraph) { if (pr.GetType() == typeof(Text) && ((Text)pr).Row != -1 && ((Text)pr).Column != -1) { decimal d = Convert.ToDecimal( ((Text)pr).GetTextString()); ((Text)pr).SetTextString(String.Format("{0:e}", d)); ((Text)pr).PE.Fill = Color.Red; } } }
private void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)
{
foreach (Primitive pr in e.SceneGraph)
if (pr.GetType() == typeof(Text) && ((Text)pr).Row != -1 && ((Text)pr).Column != -1)
decimal d = Convert.ToDecimal( ((Text)pr).GetTextString());
((Text)pr).SetTextString(String.Format("{0:e}", d));
((Text)pr).PE.Fill = Color.Red;
}
Let me know if you have any questions.