Page 1 of 1

chartrect does not autosize based on custom axis label

Posted: Tue Jan 19, 2010 10:01 pm
by 10054750
Hello,

If you have a chart that has a label on a customAxis, it seems that the chartrect does not resize based on whether the label is visible or not, or what the text of the axis title. If I use the exact same chart, but link the series to one of the default axes, then the chartrect resizes automatically to accomodate the axis title.

Is there a way to make the chart rect resize to accomodate the axis title of custom axes, if custom axes are being used on the plot?

Re: chartrect does not autosize based on custom axis label

Posted: Wed Jan 20, 2010 8:41 am
by narcis
Hi davidnovo,

Custom axes don't calculate margins automatically. You can either set desired margin manually or for a more dynamic solution implement something as the PlaceAxes method Yeray posted here.

Re: chartrect does not autosize based on custom axis label

Posted: Wed Jan 20, 2010 3:41 pm
by 10047094
Hi Narcis,

This should definitely be added as part of the standard behavior. If I have a plot use custom axes, why would I ever want TChart to only base the margin on one of the standard axes? The code that Yeray wrote should be incorporated as a standard part of the chartrect calculation!

Re: chartrect does not autosize based on custom axis label

Posted: Thu Jan 21, 2010 8:34 am
by narcis
Hello,

This is on the wish-list to be considered for inclusion in future releases.

Re: chartrect does not autosize based on custom axis label

Posted: Tue Feb 09, 2010 6:38 pm
by 10547916
Please note that I am also eagerly waiting for that "feature".
Rgds,
Christian

Re: chartrect does not autosize based on custom axis label

Posted: Mon Nov 06, 2017 11:05 am
by 16579754
Any progress on this "feature"?
Is there an "easy" way to place a custom axis outside of the Chart rectangle without doing mad assumptions about Axis Title and Labels sizes?

Roumen

Re: chartrect does not autosize based on custom axis label

Posted: Tue Nov 07, 2017 8:41 am
by yeray
Hello,

No, I'm afraid #126 hasn't been implemented yet.
What do you consider to be "mad assumptions" in the example pointed out above?