Page 1 of 1

Can I Set offset for Axis or make offset for scLine

Posted: Fri Oct 27, 2006 8:52 am
by 9089070
Hi to all!
Do Axis can have offset to one value forward?
Or make offset in scLine like in scBar

Best Regards Nuzur.

Posted: Fri Oct 27, 2006 9:12 am
by narcis
Hi Nuzur,

Yes, you can use axes minimum and maximum offset as shown here.

Posted: Fri Oct 27, 2006 9:22 am
by 9089070
narcis wrote:Hi Nuzur,

Yes, you can use axes minimum and maximum offset as shown here.
You don't understand. I need set simply offset not for maximum mininmux.
When first value show to second point, second point to third and so go on.
I need move axis for one value forward.

Situation is going worse. I need offset bottom value that represent by string what represent date-time :cry:

I try get min\max from bottom and left( double) and it return zero :(

Posted: Fri Oct 27, 2006 9:58 am
by narcis
Hi Nuzur,
You don't understand. I need set simply offset not for maximum mininmux.
When first value show to second point, second point to third and so go on.
I need move axis for one value forward.
Ok, then you can modify labels text in the OnGetAxisLabel event.
Situation is going worse. I need offset bottom value that represent by string what represent date-time
I don't understand the exact problem but you may need to do some type conversion.
I try get min\max from bottom and left( double) and it return zero
You need to let the chart draw itself before to do all properties calculations and thus axes values. Before using this code you should make the call below to force the chart being internally painted.

Code: Select all

TChart1.Environment.InternalRepaint

Posted: Fri Oct 27, 2006 10:12 am
by 9089070
Ok it's hard to explain only use words i'll write into -
steema.public.attachments

Posted: Wed Nov 08, 2006 11:01 am
by 9089070
I still wait reply into conference :(

Posted: Wed Nov 08, 2006 4:30 pm
by narcis
Hi Nuzur,

Ok, I just replied at the newsgroups. However, a very small change to the code was necessary to display the series as you want.