Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4341
Display exponential value on X axis.
posted

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.

 

Parents
No Data
Reply
  • 53790
    posted

    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;

                    }

                }

            }

     

    Let me know if you have any questions.

Children
No Data