Hi,
I have a problem with the scales of the left axis in a Barchart when the values are very small (here below 1,0*10e-14).
There isn't displayed any scale. It also doesn't help to chose a very small increment (like 1,0*10e-14).
What can i do?
Regards,
Timo
Left Axis scales problem with very small values (10e-14)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Timo,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.
Thanks in advance.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Create a new Project with a Chart and use the following oncreate:
The bars are displayed correctly, just the markers and the scales are 0
I use TChart Pro 8.01.
Thank you,
Timo[/code]
Code: Select all
procedure TForm3.FormCreate(Sender: TObject);
begin
chart1.AddSeries( TBarSeries.Create( chart1 ) );
chart1.AddSeries( TBarSeries.Create( chart1 ) );
chart1.AddSeries( TBarSeries.Create( chart1 ) );
chart1[0].AddXY( 1, 1*power(10,-14) );
chart1[1].AddXY( 1, 2*power(10,-14) );
chart1[2].AddXY( 1, 1.5*power(10,-14) );
end;
I use TChart Pro 8.01.
Thank you,
Timo[/code]
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Timo,
Thanks for the example code.
The problem here is that minimum axis range and minimum axis increment are "hard-coded" into TeeChart sources. Minimum axis range is set to 1.0e-11 and minimum axis increment to 1.0e-12. This is to avoid errors when dividing with small values. To avoid this limitation you can either change TeeChart sources (set these values to smaller value - not recommended) or alternatively manually place labels by using custom labeling. You'll find an example about custom labels at All Features\Welcome!\Axes\Labels\Custom labels in the new features demo, available at TeeChart's program group.
Thanks for the example code.
The problem here is that minimum axis range and minimum axis increment are "hard-coded" into TeeChart sources. Minimum axis range is set to 1.0e-11 and minimum axis increment to 1.0e-12. This is to avoid errors when dividing with small values. To avoid this limitation you can either change TeeChart sources (set these values to smaller value - not recommended) or alternatively manually place labels by using custom labeling. You'll find an example about custom labels at All Features\Welcome!\Axes\Labels\Custom labels in the new features demo, available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |