Axis Scale problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
weidunu
Newbie
Newbie
Posts: 7
Joined: Wed Jul 06, 2016 12:00 am
Contact:

Axis Scale problem

Post by weidunu » Fri Nov 18, 2016 11:28 am

Hi,

by changing TeechartPro 2011 to TeechartPro2012_2016 my application will have a Problem by scaling the axis. If I have paramized on manual axis mode, scalation from 0 ..10, scale step 0.1 and a small chart size, I see the scalation starts from 0 with the steps of 0.8 . The end value of 10 will be not displayed.

How can I Change this ?

Inside the little graphic file you can see this better !


Best regards

Udo
Attachments
Axis scale problem.jpg
Axis scale problem.jpg (111.29 KiB) Viewed 6348 times

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

Re: Axis Scale problem

Post by Yeray » Mon Nov 21, 2016 1:23 pm

Hello,
weidunu wrote:If I have paramized on manual axis mode, scalation from 0 ..10, scale step 0.1 and a small chart size, I see the scalation starts from 0 with the steps of 0.8 .
I understand that's the correct behaviour. setting an Increment of 0.1 means the chart will try to draw labels with that increment when they aren't overlapping. If they are overlapping, TeeChart searches for the minimum increment that will allow drawing the labels without overlapping, from that value you've set. So the size of the axis and the labels font also affect this internal calculation.
If you want to force an increment, being responsible of the label overlapping, you can use custom labels.
weidunu wrote:The end value of 10 will be not displayed.
Have you tried adding some MaximumOffset to the axis?
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

weidunu
Newbie
Newbie
Posts: 7
Joined: Wed Jul 06, 2016 12:00 am
Contact:

Re: Axis Scale problem

Post by weidunu » Mon Dec 19, 2016 8:27 am

Hello Yeray,

sorry for writing so late, but I was very bussy. I set the range of an axis with the SetMinMax-function and in the past it works very fine.
The old algorithm was for me better.

Beste regards

Udo

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

Re: Axis Scale problem

Post by Yeray » Mon Dec 19, 2016 9:24 am

Hello Udo,

We'll be pleased to check what changed and if there's anything we can improve if you can arrange a simple example project we can run as-is to reproduce the problem here.
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