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

Message ListMessage List     Post MessagePost Message

  x-axis value, y-axis value setting
Posted by anna on Mar-25-2014 22:06
Attachments:
hello~

how to setting the x-axis value, y-axis value ?

attach image.


how to setting the x-axis value, y-axis value??
제목 없음.jpg

  Re: x-axis value, y-axis value setting
Posted by anna on Mar-25-2014 22:10
Attachments:
again upload attachment image
제목 없음.jpg

  Re: x-axis value, y-axis value setting
Posted by Peter Kwan on Mar-25-2014 22:58
Hi anna,

You may use Axis.setLinearScale. For example:

//axis scale from 0 to 60, with labels at 0 and 60
c->yAxis()->setLinearScale(0, 60, 60);

or

//axis scale from 0 to 60, with labels at 0, 10, 20, 30, 40, 50, and 60
c->yAxis()->setLinearScale(0, 60, 10);

Hope this can help.

Regards
Peter Kwan

  Re: x-axis value, y-axis value setting
Posted by anna on Mar-25-2014 23:21
Hi

In Setxdata function help me  title post....

In Drawchart function, coding  example  ...please

  Re: x-axis value, y-axis value setting
Posted by Peter Kwan on Mar-27-2014 03:11
Hi anna,

Just add the following two lines in your charting code:

c->xAxis()->setLinearScale(0, 50, 50);
c->yAxis()->setLinearScale(0, 60, 60);

Hope this can help.

Regards
Peter Kwan