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

Message ListMessage List     Post MessagePost Message

  whole numbers on y-axis?
Posted by palloquin on Apr-14-2014 15:52
Hi,

I have a chart where I display the number of users on a system overtime. So, the x-axis is a time line, the y-axis shows the number of users.

If for the report period the number of users is low (1<>5) ChartDirector forces multiple labels anyway with fractions (0, 0.2, 0.4, 0.6, 0.8, 1) of users... Hard to explain what 0.4 users are ;)

Is there any way to force ChartDirector to only show the whole numbers on the y-axis?

  Re: whole numbers on y-axis?
Posted by Peter Kwan on Apr-15-2014 00:19
Hi palloquin,

You may use Axis.setMinTickInc. For example, in C#/Java, it is like:

//at least 1 unit between ticks
c.yAxis().setMinTickInc(1);

In PHP, it is like:

#at least 1 unit between ticks
$c->yAxis->setMinTickInc(1);

Hope this can help.

Regards
Peter Kwan