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

Message ListMessage List     Post MessagePost Message

  Limit X axis
Posted by seafree on Jan-07-2015 05:51
Hi, could you help me to limit X axis to 100%? Now tha chart show 100.5

Thanks

  Re: Limit X axis
Posted by Peter Kwan on Jan-08-2015 01:08
Hi seafree,

ChartDirector will auto-scale the axis based on your data. If in your application, you need
the top limit to be always 100, you can use Axis.setLinearScale. For example:

#x-axis is 0 to 100
$c->xAxis()->setLinearScale(0, 100, 10);

or

#Lower limit is automatically determined. Upper limit is 100.
$c->xAxis()->setLinearScale($perlchardir::NoValue, 100);

Hope this can help.

Regards
Peter Kwan