Page 1 of 1

Wrong axis scaling

Posted: Mon Jun 21, 2010 9:21 am
by 15655996
Hi,

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

I also attached the source file (test.zip)

What is wrong?

Uli

Edited: I uploaded the wrong test_1.jpg, sorry. Now corrected.

Re: Wrong axis scaling

Posted: Tue Jun 22, 2010 10:01 am
by 10050769
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,

Re: Wrong axis scaling

Posted: Tue Jun 22, 2010 10:52 am
by 15655996
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

Re: Wrong axis scaling

Posted: Wed Jun 23, 2010 6:45 am
by Chris
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 13829 times


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

Re: Wrong axis scaling

Posted: Wed Jun 23, 2010 8:11 am
by 15655996
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