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

Message ListMessage List     Post MessagePost Message

  How to set the yAxis numbers to fixed numbers
Posted by Shahar on Apr-23-2010 14:50
Hi
I'm using PHP chardirector version 5.
and i need to display the Symbol Line Chart (2) graph(in the examples)
my question is how do i set the yAxis numbers on the right to be a fixed serial of numbers and that it wont be affected by the data in the graph,for example i want that the yAxis scale will be for instances of the graph in the range 0-30.
Thanks in Advance,Shahar

  Re: How to set the yAxis numbers to fixed numbers
Posted by Peter Kwan on Apr-23-2010 17:04
Hi Shahar,

You may use Axis.setLinearScale to configure the axis scale. If you do not configure the axis scale, ChartDirector will automatically configure it based on the data values in the chart (so that scale will depend on the actual data used).

For example, in PHP:

$c->yAxis->setLinearScale(0, 30, 5);

Hope this can help.

Regards
Peter Kwan

  Re: How to set the yAxis numbers to fixed numbers
Posted by Shahar on Apr-23-2010 18:00
Hi Peter
Thanks it worked for me.