?
Solved

jpgraph

Posted on 2002-05-10
2
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
lokeshv earned 200 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

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 …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

771 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