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

Message ListMessage List     Post MessagePost Message

  Problem with CDMLTable
Posted by Miguel Casallas on Feb-25-2011 15:02
Attachments:
I am making a table with CDMLTable but have a problem, some times, the first column takes a width of 1 or 2 pixels, it causes that my table ignore these column.

In the attachment, i had hightlighted the problem, could any help to define the minimun width of columns?
chart129861512891828.png

  Re: Problem with CDMLTable
Posted by Peter Kwan on Feb-26-2011 01:20
Hi Miguel,

Are you using Axis.makeLabelTable to create the CDMLTable? As according to the ChartDirector documentation on Axis.makeLabelTable: "You should only use this method on a label based axis with no label stepping."

For your case, your x-axis is either not a label based axis, or it has label stepping (many of the labels are not shown). I would suggest that you do not use axis table. You may still display your data using a table using other methods (eg. if you are writing a web page, you may use HTML <TABLE>, or you may use BaseChart.addTable to create an independent CDMLTable that is not docked to the axis).

Anyway, if you must use CDMLTable, you may use CDMLTtable.setText to set the text of any cell. So you can freely set the cells in the second column to empty. (In your chart, it seems the first column is the legend icon.)

Hope this can help.

Regards
Peter Kwan