Page 1 of 1

Axes Label issue

Posted: Thu Aug 04, 2011 9:20 am
by 15659642
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 5923 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.

Re: Axes Label issue

Posted: Thu Aug 04, 2011 1:08 pm
by 10050769
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,

Re: Axes Label issue

Posted: Thu Aug 04, 2011 1:22 pm
by 15659642
I am using the WPF version of TChart.

Re: Axes Label issue

Posted: Thu Aug 04, 2011 2:20 pm
by 10050769
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,

Re: Axes Label issue

Posted: Thu Aug 04, 2011 2:22 pm
by 15659642
I have been able to reproduce it.

I enclosed the small I made to test it.

Re: Axes Label issue

Posted: Fri Aug 05, 2011 9:57 am
by 10050769
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,

Re: Axes Label issue

Posted: Fri Aug 05, 2011 10:25 am
by yeray
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");