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

Message ListMessage List     Post MessagePost Message

  Y Axis values not start from zero
Posted by Oka Prinarjaya on Dec-18-2012 10:52
Halo Folks :)

Why the Y Axis values of my chart can not start from zero ??
this is the picture screenshoot of my generated chart using chart director:
http://prinarjaya.com/email-test/chart_error.png

Please help me..

Thank you :)

  Re: Y Axis values not start from zero
Posted by Peter Kwan on Dec-19-2012 00:36
Hi Oka,

You may use Axis.setAutoScale to ask ChartDirector to always start the y-axis from 0 when auto-scaling the axis. For example, in Java/C#, the code is like:

c.yAxis().setAutoScale(0.05, 0.05, 1);

In PHP, the code is like:

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

Hope this can help.

Regards
Peter Kwan

  Re: Y Axis values not start from zero
Posted by Oka Prinarjaya on Dec-20-2012 11:13
Wowwww very fast response!
And, i say wowww again! Your answer solve my problem. Thank you very much Peter. I will recommend all of my colleague to use this awesome library!

Thank You. .