Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 How to define a fixed range for y axis?

open
nobody
None
5
2004-06-23
2004-06-23
Breno Moiana
No

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

Discussion

  • smitchell
    smitchell
    2005-01-21

    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

     
  • Breno Moiana
    Breno Moiana
    2005-01-21

    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.

     
  • jazzle
    jazzle
    2005-11-24

    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