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

Message ListMessage List     Post MessagePost Message

  Can elaborate tables me coded into a chart legend?
Posted by John Doe on Mar-28-2013 03:12
Can elaborate tables me coded into a chart legend? Does the legend box accept html? Is
there an alternative to add a lot more information in a tabular format within the legend?

Thanks!

  Re: Can elaborate tables me coded into a chart legend?
Posted by Peter Kwan on Mar-29-2013 02:08
Hi Joe,

Unluckily, you cannot put "elaborate tables" into a legend box. You can use "CDML" to achieve some simple text layout, but not complex text layout like HTML or a word processor.

For example, in the "Donut Chart" sample code, CDML is used to configure the legend box to have a simple "table like" layout:

http://www.advsofteng.com/doc/cdphp.htm#donut.htm

For more information on CDML, see:

http://www.advsofteng.com/doc/cdphp.htm#cdml.htm

ChartDirector cannot interpret HTML. Normally, only a brower can interpret HTML (even PHP cannot interpret HTML). As you are writing a web application, you may consider to create the legend box using HTML and include it as part of your HTML web page (perhaps putting it next to the chart image, so it looks like being a legend box for the chart).

Regards
Peter Kwan