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

Message ListMessage List     Post MessagePost Message

  Y-Axis be forced to start from 0
Posted by Ma Ji on Mar-11-2011 14:50
Attachments:
Dear Peter,

I encounter an issue, how can i make the Y-Axis be forced to start from 0?
not from some offset value.

Sincerely,

Ma Ji
MJ-134540.jpg

  Re: Y-Axis be forced to start from 0
Posted by Peter Kwan on Mar-11-2011 18:30
Hi Ma Ji,

You may use Axis.setAutoScale to configure how auto-scaling choose the axis starting and ending points. For your case, you may set the zero-affinity parameter to 1, in which case ChartDirector will always include zero in the axis scale. For example:

Call c.yAxis2().setAutoScale(0.05, 0.05, 1)

Hope this can help.

Regards
Peter Kwan