Click here to get back home

GD::Graph => How to set maximum value manually on Y ?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
GD::Graph => How to set maximum value manually on Y ? Yoann Wyffels 10-06-2004
Posted by Yoann Wyffels on October 6, 2004, 6:35 pm
Please log in for more thread options
Hi,

Do you know how to "tell" to GD::Graph which is the maximum value on a chart
?

I explain:
When you want to make a chart with % data, value begin at 0 and finish at
100 (0 - 100%). But GD::Graph automaticly define the max value (so if you
have a chart with max value=30 in your @data, the chart will show the max at
30-35%).

Thanks for your help.
Regards,
Yoann Wyffels




Posted by Jarson on October 7, 2004, 10:49 am
Please log in for more thread options

> Hi,
>
> Do you know how to "tell" to GD::Graph which is the maximum value on a
> chart
> ?
>
> I explain:
> When you want to make a chart with % data, value begin at 0 and finish at
> 100 (0 - 100%). But GD::Graph automaticly define the max value (so if you
> have a chart with max value=30 in your @data, the chart will show the max
> at
> 30-35%).
>
> Thanks for your help.
> Regards,
> Yoann Wyffels
>

Use y_max_value:
$graph->set( y_max_value => 100 );

>




Posted by Yoann Wyffels on October 7, 2004, 11:08 pm
Please log in for more thread options
yes it is. thanks !

>
> > Hi,
> >
> > Do you know how to "tell" to GD::Graph which is the maximum value on a
> > chart
> > ?
> >
> > I explain:
> > When you want to make a chart with % data, value begin at 0 and finish
at
> > 100 (0 - 100%). But GD::Graph automaticly define the max value (so if
you
> > have a chart with max value=30 in your @data, the chart will show the
max
> > at
> > 30-35%).
> >
> > Thanks for your help.
> > Regards,
> > Yoann Wyffels
> >
>
> Use y_max_value:
> $graph->set( y_max_value => 100 );
>
> >
>
>




Similar ThreadsPosted
Maximum number of sockets - FD_SETSIZE September 8, 2006, 10:14 am
manually expire an element in Memoize (also on comp.lang.perl.misc) February 14, 2007, 5:52 pm
GD::Graph - how to get rid of leading gap in line graph? October 1, 2004, 10:56 am
Graph.0.69 Module---how to get a DAG from graph with cycles January 23, 2006, 2:50 pm
GD::GRAPH two_axes December 8, 2004, 6:01 pm
GD::Graph isn't numeric etc. January 26, 2005, 7:43 pm
GD graph, Several Colors per Bar? May 30, 2005, 6:52 pm
Name for a new Tk Graph module April 4, 2007, 6:17 am
Perl GD::Graph module: bug? August 3, 2004, 8:42 pm
Do we need Graph::Clique module? November 10, 2004, 2:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap