How to define a fixed range for y axis?
Status: Alpha
Brought to you by:
eugenfernea
I have some data I want to plot that is comprised
between 300 and 500 (it s values). I would like though
to have it ploted on a 1-500 scale, instead of the
lowest-greatest value which is panaChart's default. Is
it possible to do that with the current version?
Thanks!
Best Regards,
Breno Moiana
Logged In: YES
user_id=1201899
Has there been any work decision on this request? I have the
same problem and would like to continue to use PanaChart
but this is a major stumbling block.
Thanks,
Shaun
Logged In: YES
user_id=70785
I have managed to get this working, but it has been a long
time. mail me at stark at users dot sourceforge dot net, and
I can send you the script. If I get time to go through it
and find out what I have done, I will put the feedback here.
Logged In: YES
user_id=1139143
You can add a simple series with the min and max values:
$min = 0;
$max = 500;
$range = array($min, $max);
$ochart->addSeries($range, '', '', '', '', ''); //
artifically space out y-axis
Without code changes, the max will actually be +10%.
replace
$max = $this->m_maxValue + (($this->m_maxValue -
$this->m_minValue)*0.1/5)*5;
with
$max = $this->m_maxValue;
jazzle
http://jazzle.co.uk