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

Message ListMessage List     Post MessagePost Message

  setting minimum axis value
Posted by Eyal on Feb-05-2014 05:27
Attachments:
Hi

I'd like to create a bar chart with Y axis scale starting from 0.
It seems like phpchartdir is automatically selecting the minimum Y axis based on the graph
data.
In the attached example, the minimum is 2200 and I want it to be 0.

Thanks
Eyal
predict_dbtime.jpg

  Re: setting minimum axis value
Posted by Peter Kwan on Feb-06-2014 00:28
Hi Eyal,

You may use Axis.setAutoScale to configure ChartDirector to always include 0 in the axis
when selecting the axis scale. For example:

$c->yAxis->setAutoScale(0.05, 0.05, 1);

Hope this can help.

Regards
Peter Kwan