ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Legendbox placement/size questions.
Posted by TonyVSUK on Jan-06-2022 20:49
I've got a standard line graph.

What I want to do is figure out the size of the legend box, and use "packPlotArea" to fill up the remaining chart area with the actual graph.

Is there a way of doing this? Basically I want to set the plot area size after I know the size of the legendbox.

Thanks in advance,

Tony.

  Re: Legendbox placement/size questions.
Posted by Peter Kwan on Jan-07-2022 00:11
Hi TonyVSUK,

You can use BaseChart::layoutLegend to ask ChartDirector to determine the legend box size. You can use pack the plot area based on that size. The following is an example:

https://www.advsofteng.com/doc/cdcpp.htm#missingpoints.htm

Hope this can help.

Regards
Peter Kwan

  Re: Legendbox placement/size questions.
Posted by TonyVSUK on Jan-07-2022 00:24
Perfect, exactly what I was looking for.  Many thanks,

Tony.