text export float precision

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
sring
Newbie
Newbie
Posts: 2
Joined: Mon Jul 20, 2009 12:00 am

text export float precision

Post by sring » Thu Mar 10, 2011 7:51 pm

If my series entirely consists of very small numbers, I'm not getting enough precision out of the default text export to have useful numbers. Is there a way to control this?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: text export float precision

Post by Sandra » Fri Mar 11, 2011 11:10 am

Hello sring,

You need change value format as do in next example

Code: Select all

        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Line Series1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            Series1.Add(0.000001);
            Series1.Add(0.0001);
            Series1.Add(0.001);
            Series1.Add(0.00001);
            Series1.Add(0.01);
            Series1.Add(0.0000001);
            Series1.ValueFormat = "#0.0000000";
            tChart1.Export.Data.Text.IncludeIndex = true;
            tChart1.Export.Data.Text.Save(@"C:\Chart1.txt"); 
        }
Could you tell us if changing ValueFormat your problem is solved?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

sring
Newbie
Newbie
Posts: 2
Joined: Mon Jul 20, 2009 12:00 am

Re: text export float precision

Post by sring » Fri Mar 11, 2011 4:08 pm

That fixed the problem. Thanks

Post Reply