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

Message ListMessage List     Post MessagePost Message

  Question about line chart
Posted by nimda on Oct-11-2011 16:15
Attachments:
Hello
Could you tell me please why the graph shows from 0'c to 40'c then from 20'c to 35'c for
example? Why it isn't shown more close?
1.png

  Re: Question about line chart
Posted by nimda on Oct-11-2011 20:13
Attachments:
I need graph scale like attached one :/
1.png

  Re: Question about line chart
Posted by Peter Kwan on Oct-12-2011 01:39
Hi nimda,

In the majority of the cases, people would prefer the axis to start from 0. However, in some cases, people would not prefer the axis to start from 0. You can configure this using Axis.setAutoScale.

If Axis.setAutoScale is not used, ChartDirector will default to the "80/20" rule. If the minimum data range is at least 80% of the maximum data value, then the axis will not start with 0. Otherwise the axis will start from 0.

If you want the axis to have no preference to start from 0, in VB/VBScript, the code is like:

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

Hope this can help.

Regards
Peter Kwan