Wrong axis scaling

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Wrong axis scaling

Post by Uli » Mon Jun 21, 2010 9:21 am

Hi,

the following wrong axis scale occured:
test.jpg
test.jpg (56.04 KiB) Viewed 13909 times
Correct axis scaling should look like this:
test_1.jpg
test_1.jpg (53.19 KiB) Viewed 13913 times

I also attached the source file (test.zip)

What is wrong?

Uli

Edited: I uploaded the wrong test_1.jpg, sorry. Now corrected.
Attachments
test.zip
(5.44 KiB) Downloaded 785 times

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

Re: Wrong axis scaling

Post by Sandra » Tue Jun 22, 2010 10:01 am

Hello Uli,


Thanks for information. I have added problem in bug report list with number [TF02014988]. We will try to fix it in next versions of TeeChart.Net.


On the other hand, can you tell us how you made chart of image test_1.jpg? We would be very grateful, that if you made it with TeeChart, you tell us, which version you used.


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

Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Wrong axis scaling

Post by Uli » Tue Jun 22, 2010 10:52 am

Hi Sandra,

test_1.jpg was created with my own chart component (programmed in delphi). Since I can not use it in VB .net I decided to buy TeeChart. But your answer implies that I cannot use TeeChart until the next release since such basic scaling errors are not acceptable. Please note, that these errors are obvious in both horizontal and vertical axis. Additionally, even disabling the exponential option and using other exponential format strings do not work correctly. An empty string comes nearest to the expected (x-Axis, but also not acceptable).

As I mentioned above, with such basic scaling errors I cannot use TeeChart. So I would be glad if you could provide a workaround.

Regards,

Uli

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: Wrong axis scaling

Post by Christopher » Wed Jun 23, 2010 6:45 am

Uli,
Uli wrote:As I mentioned above, with such basic scaling errors I cannot use TeeChart. So I would be glad if you could provide a workaround.
Try:

Code: Select all

      
      tChart1.Import.Template.Load(@"C:\test\test.ten");
      tChart1.Axes.Bottom.Labels.Exponent = false;
      tChart1.Axes.Bottom.Labels.ValueFormat = "g";
      tChart1.GetAxisLabel += new GetAxisLabelEventHandler(tChart1_GetAxisLabel);

    void tChart1_GetAxisLabel(object sender, GetAxisLabelEventArgs e)
    {
      if (e.LabelText.Contains("e-21")) e.LabelText = "0";
    }
This gives me the image attached:
log.png
log.png (13.07 KiB) Viewed 13831 times


TF02014988 is still open and will be looked at in a future maintenance release.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Wrong axis scaling

Post by Uli » Wed Jun 23, 2010 8:11 am

Hi Christopher,

yes, this workaround should work. Therefore, I will download the version with the now fixed bug (TF02014878) like you suggested in the other thread.

But another thing is interesting in your image log.png : I can not detect these legend items text drawn with legend font set to color.transparent (I addressed this in http://www.teechart.net/support/viewtop ... =4&t=11247). Did you go via the TChart1.Export.Image.Metafile.CopyToClipboard() function or did you save it directly to png file? In the first case I would really like to know what you have done to overcome this "ghost text" effect.
TF02014988 is still open and will be looked at in a future maintenance release
I would highly acknowledge if you could provide a new release with fixed TF02014988 (and TF02014990 / TF02014992 ) soon. I assume exponetiell axis label formating (with superscripts) as a must for scientific applications.

Best regards

Uli

Post Reply