Solved

jpgraph

Posted on 2002-05-10
2
253 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
Comment Utility
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
Comment Utility
thX alot
it worked sooooooo fine
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

744 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

17 Experts available now in Live!

Get 1:1 Help Now