Solved

jpgraph

Posted on 2002-05-10
2
276 Views
Last Modified: 2006-11-17
i'm having problems with the y-axis!
e.g.
i have a range of objects from 1 to 7.
the array i'm plotting is {2,4}
what i get on the y-axis labels is 4 as a maximum label.
now, what i want to get is 7 as a maximum label even if i have no plots on it.
0
Comment
Question by:lina2401
2 Comments
 
LVL 4

Accepted Solution

by:
lokeshv earned 50 total points
ID: 7002857
instead of autoscaling choose ur own scaling in SetScale method..


SetScale(String $axtype,int $ymin=1,int $ymax=1,int $xmin=1,int $xmax=1)

and dont forget to define the ticks..
$graph->yscale->ticks->Set(1,25);


Hope this helps..

LK

0
 

Author Comment

by:lina2401
ID: 7004592
thX alot
it worked sooooooo fine
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question