Solved

jpgraph

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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…

734 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