Axes Label issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
antoine
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

Axes Label issue

Post by antoine » Thu Aug 04, 2011 9:20 am

Hi,

Just to let you know that I found an issue with the Label axes:
AxesLabel.PNG
axes lebel issue
AxesLabel.PNG (19.41 KiB) Viewed 5893 times
the axes is configure like this:

Code: Select all

in_TChart.Axes.Left.Minimum = 49;
in_TChart.Axes.Left.Maximum = 50;
in_TChart.Axes.Left.Increment = 0,1;
in_TChart.Axes.Left.Labels.Exponent = true;
in_TChart.Axes.Left.Labels.ValueFormat = "#.0 x10 E+0";
If the ValueFormat is set to "#.00 x10 E+0", the label is well displayed.

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

Re: Axes Label issue

Post by Sandra » Thu Aug 04, 2011 1:08 pm

Hello Antonie,

I couldn't reproduce your problem using next code:

Code: Select all

        private void InitializeChart()
        {
            line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line1.Add(1.0);
            line1.Add(1.0e+1);
            line1.Add(1.0e+2);
            line1.Add(1.0e+2);
            line1.Add(1.0e+2);
            line1.Add(1.0e+2);
            line1.Add(1.0e+2);
            tChart1.Axes.Left.Minimum = 49;
            tChart1.Axes.Left.Maximum = 50;
            tChart1.Axes.Left.Increment = 0.1; 
            tChart1.Axes.Left.Labels.Exponent = true;
            tChart1.Axes.Left.Labels.ValueFormat = "#.0 x10 E+0";
        }
Can you please, tell us, if in previous code appears your problem? Moreover, if in code you can reproduce your problem, please explain how we can reproduce it here.

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

antoine
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

Re: Axes Label issue

Post by antoine » Thu Aug 04, 2011 1:22 pm

I am using the WPF version of TChart.

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

Re: Axes Label issue

Post by Sandra » Thu Aug 04, 2011 2:20 pm

Hello antonie,

Sorry, you are right and it occurs in WinForms too. I have added your request in the bug list report with number [TF02015683]. We will try to fix it for next versions of Teechart.Net

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

antoine
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

Re: Axes Label issue

Post by antoine » Thu Aug 04, 2011 2:22 pm

I have been able to reproduce it.

I enclosed the small I made to test it.
Attachments
TestLine TChart.rar
(34.83 KiB) Downloaded 337 times

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

Re: Axes Label issue

Post by Sandra » Fri Aug 05, 2011 9:57 am

Hello antoine,

Thank you for your project, it will be helpful to solve the problem. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Axes Label issue

Post by Yeray » Fri Aug 05, 2011 10:25 am

Hello antonie,

I've looked at this and I think it's more a .NET Framework issue than a TeeChart related one. Note that TeeChart uses the Framework functions to format the values to get the strings. The problem is actually reproducible without any chart, simply with the following code:

Code: Select all

            double tmp = 4.95e+1;
            this.Text = tmp.ToString("#.0 x10 E+0") + "     " + tmp.ToString("#.00 x10 E+0");
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply