Page 1 of 1

labels on customAxis

Posted: Mon Jan 08, 2007 12:43 pm
by 9044988
hello

i add few customAxes and on every axes i have labels on the left side of axis; i would like to show them on right side like default has "right axis"

and next question is : i would like to set dynamically position of axes and it is dificult to use .PercentPosition (for example when resizing form) - is there some other method to set position of axex ??

thanks for help

Posted: Mon Jan 08, 2007 1:58 pm
by narcis
Hi guzial,
i add few customAxes and on every axes i have labels on the left side of axis; i would like to show them on right side like default has "right axis"
You can set custom axes to OtherSide and set their position to 100%:

Code: Select all

  Chart1.CustomAxes.Items[0].OtherSide:=true;
  Chart1.CustomAxes.Items[0].PositionPercent:=100;
and next question is : i would like to set dynamically position of axes and it is dificult to use .PercentPosition (for example when resizing form) - is there some other method to set position of axex ??
You may set their units to pixels:

Code: Select all

  Chart1.CustomAxes.Items[0].PositionUnits:=muPixels;
And also set their position relative to some chart element in TeeChart's OnAfterDraw event.

If this doesn't help please give us more information about what are you exactly trying to achieve.

Posted: Tue Jan 09, 2007 6:13 am
by 9044988
If this doesn't help please give us more information about what are you exactly trying to achieve.
you gave me some important hands; i didint try but im going to set dynamically position of my 3 custom axex - theirs position depend on max width of lables on every axex. If i have some problems i will write :) thanks a lot ;) [/quote]