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

Message ListMessage List     Post MessagePost Message

  multichart with a common legend
Posted by John Stacey on Mar-27-2013 03:23
I have a multichart defined with 2 charts (side by side), both charts use a common legend. I want the legend to go across the top of both charts.

  Re: multichart with a common legend
Posted by Peter Kwan on Mar-28-2013 02:00
Hi John,

There are several methods.

(1) Instead of adding the legend boxes to the 2 charts, you may add a legend box to the MultiChart. As the legend box is in the MultiChart, it will not have any automatic entry. So you would need to use LegendBox.addKey to add the entries.

or

(2) You may configure the first chart to have a legend box (which would then have automatic legend entries for the first chart), and then use LegendBox.addKey to add more entries as the legend entries for the data in the second chart. In the second chart, no legend box is added. So the chart would end up with 1 legend box containing entries for both charts. If you size the charts correctly (eg, double the width of the first chart, and put the second chart on the right half of the first chart), you can obtain the layout you need.

Hope this can help.

Regards
Peter Kwan