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

Message ListMessage List     Post MessagePost Message

  Chart titles are overlapping on the graph
Posted by Smith on Apr-23-2013 21:02
Attachments:
Hi,

Chart titles are overlapping on the graph when I am trying to plot multiple curves.

Please proivide the solution to avoid overlapping of titles on the graph.

Please see attachment for your reference.

Thanks In Advance,
Smith.
ChartOverlap.png

  Re: Chart titles are overlapping on the graph
Posted by Peter Kwan on Apr-24-2013 01:17
Hi Smith,

After entering the data into the XYChart, you may call BaseChart.layoutLegend to ask ChartDirector to layout the legend box, so as to determine its height. Then you may use XYChart.packPlotArea to adjust the plot area size based on the legend box height.

There is an example in ChartDirector called "Missing Data Points" demonstrating this approach. (You may look up "Missing Data Points" from the ChartDirector documentation index.) In that example, the legend box in that example only has 1 line, but the method works even if the legend box has multiple lines.

Hope this can help.

Regards
Peter Kwan