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

Message ListMessage List     Post MessagePost Message

  Dont want fractional values in y-Axis
Posted by niket singh on Oct-25-2013 14:03
Hi,

I want to set Y-axis linear scale to value (0 to 4 ) but whenever i set this value
chardirector automatically span it to 0,0.5,1,1.5,......4 . but i want to fix the scale as 1 ,2
3,4.

Thanks in advance

Regards
Niket Kumar Singh

  Re: Dont want fractional values in y-Axis
Posted by Peter Kwan on Oct-26-2013 00:13
Hi niket,

I assume you are using Axis.setLinearScale to set the y-axis scale to 0 - 4. Please make sure you also set the tick increment to 1. It is like (in C#/Java):

c.yAxis().setLinearScale(0, 4, 1);

If you do not set the tick increment, ChartDirector will automatically set it. It will use the highest resolution tick increment possible. For example, if your axis has enough space for 9 labels, it can use 0.5 as the tick increment. If your axis is long enough for 41 labels, it may even set the tick increment to 0.1.

Hope this can help.

Regards
Peter Kwan