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

Message ListMessage List     Post MessagePost Message

  line graph
Posted by kevin on Jan-25-2014 00:26
Attachments:
hi please look at the 2 attachments. in the first one the y axis ranges from 0 to 900,000, whereas in the second attachment it ranges from 135,000 to 170,000.
i would like the Y axis on the first attachment to range from say 500,000 to 800,000.
is this possible?
line_graph_sample1.jpg
line_graph_sample2.jpg

  Re: line graph
Posted by Peter Kwan on Jan-28-2014 01:01
Hi Kevin,

By default, if the data range is small (eg. from 100 to 100.001), ChartDirector will not
specifically start the axis from 0. If the data range is large (100 to 360), ChartDirector will
start the axis from 0. By default, the data range is considered to be large if the minimum
data value is less than 80% of the maximum data value.

The above is configurable using Axis.setAutoScale. If you do not want the axis to
specifically start from 0, you may set the "zero affinity" parameter to 0. In Java/C#, it is
like:

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

Hope this can help.

Regards
Peter Kwan