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

Message ListMessage List     Post MessagePost Message

  On Simple Bar Chart, Values Ranges and Normative Values
Posted by Craig Trombly on Aug-07-2013 09:47
Attachments:

I wrote the code to generate this attached Bar Chart, though I cannot seem to find the functions I need to address a client's needs.

All the values range from 0 to 100, but the bar chart always scales like a window from 0 to the Largest value, Is there a way to make it show 0 to 100, regardless of the array of values passed in?

Also as a second request, This is a T-Score value that is calculated.  The Normal range for an individual is 60 to 80.  Is there a way to color those horizontal area's between the 60th and 80th values?
getchart.png

  Re: On Simple Bar Chart, Values Ranges and Normative Values
Posted by Peter Kwan on Aug-07-2013 18:34
Hi Craig,

You may use Axis.setLinearScale to configure the axis scale. For example, in PHP, it is like:

#set the scale from 0 to 100 regardless of what are the data
$c->yAxis->setLinearScale(0, 100, 10);

You may use Axis.addZone to add a zone between 60 to 80. For example:

#Add a light red zone (0xffcccc) between y = 60 and y = 80
$c->yAxis->addZone(60, 80, 0xffcccc);

Hope this can help.

Regards
Peter Kwan