Solved

jpgraph

Posted on 2002-05-10
2
266 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now