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

Message ListMessage List     Post MessagePost Message

  Scale on yaxis
Posted by Gonzalo on Apr-08-2015 06:39
Attachments:
Hello I have a question, I need to create a scale on the y axis as attached image, as I can
do this?
grafico.png

  Re: Scale on yaxis
Posted by Peter Kwan on Apr-09-2015 02:46
Hi Gonzalo,

I assume your axis is intentionally set to 0 to 999 (instead of the more common 0 to 1000).
There are several methods. For example (in C#/Java):

//Set the y-axis scale from 0 to 999, with a label every 100 units. This will produce the
//labels from 0 to 900
c.yAxis().setLinearScale(0, 999, 100);
//Add one more label at 999
c.yAxis().addLabel(999, "999");

Hope this can help.

Regards
Peter Kwan

  Re: Scale on yaxis
Posted by Gonzalo on Apr-09-2015 07:39
Peter Kwan, thank you very much, worked perfectly.
Just what I needed. thanks again



Peter Kwan wrote:

Hi Gonzalo,

I assume your axis is intentionally set to 0 to 999 (instead of the more common 0 to
1000).
There are several methods. For example (in C#/Java):

//Set the y-axis scale from 0 to 999, with a label every 100 units. This will produce the
//labels from 0 to 900
c.yAxis().setLinearScale(0, 999, 100);
//Add one more label at 999
c.yAxis().addLabel(999, "999");

Hope this can help.

Regards
Peter Kwan