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

Message ListMessage List     Post MessagePost Message

  remove x & y labels.
Posted by Leo on Dec-29-2011 13:57
Attachments:
Hello, Peter,

How do I remove (not just hide) both x and y labels, so I can have the space (where the
labels were) back, in other words, the plot area will go all the way to the edges (plot
area and the object area are the same).

Thanks.
before.png

  Re: remove x & y labels.
Posted by Leo on Dec-29-2011 14:24
btw, I am using Perl.

  Re: remove x & y labels.
Posted by Peter Kwan on Dec-30-2011 00:50
Hi Leo,

The position and size of the plot area is set using XYChart.setPlotArea. For example, in the original "Simple Bar Chart" sample code, there is a line:

# Set the plotarea at (30, 20) and of size 200 x 200 pixels
$c->setPlotArea(30, 20, 200, 200);

If you want the plot area to occupy the whole chart image, you may use:

$c->setPlotArea(-1, -1, $c->getWidth() + 2, $c->getHeight() + 2);

Hope this can help.

Regards
Peter Kwan