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

Message ListMessage List     Post MessagePost Message

  Arbitrary Table
Posted by KeithB on Jan-30-2024 01:10
Is there a way to create a table that is unlinked from the Axis labels?

I am creating a program to view electricity usage and want to show the dollar amounts on the chart. Currently I have the labels below the winChartViewer  as shown. I would like the table in Chart Director so that I can save everything in one image file.

The only way I see to make a table is to use makeTableFromLabels() which is not what I want to do.

I tried just creating a new table, but there is no constructor available to me.

  Re: Arbitrary Table
Posted by Peter Kwan on Jan-30-2024 15:13
Hi KeithB,

You can use BaseChart.addTable to add a table to anywhere you like.

This API will return a CDMLTable object. You can use the methods of this object to add content to the cells and to configure the display style.

The sample code that comes with ChartDirector contains examples on how to configure the column width, text style, cell background color, ...

Best Regards
Peter Kwan

  Re: Arbitrary Table
Posted by KeithB on Jan-30-2024 23:05
Ah! addTable(). I was looking for table(), or getTable(). I will add "add" to the list of things to search for in the docs!