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

Message ListMessage List     Post MessagePost Message

  position of legend
Posted by Scott on Feb-04-2019 19:02
Hi
  I would like the legend to be on the right hand side of the chart instead of the top. How do I do this?

Scott

  Re: position of legend
Posted by Peter Kwan on Feb-05-2019 01:46
Hi Scott,

When you add a legend box using BaseChart.addLegend, the first two arguments specify the position of the legend box. You can put the legend box anywhere you like.

https://www.advsofteng.com/doc/cdcpp.htm#BaseChart.addLegend.htm

ChartDirector comes with many examples in which the legend box is on the right. One of them is:

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

Hope this can help.

Regards
Peter Kwan