Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Specific numeric labels on charts with GIFgraph or Chart modules

by scratch (Sexton)
on Apr 24, 2002 at 21:46 UTC ( #161806=perlquestion: print w/replies, xml ) Need Help??

scratch has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

I'm playing with GIFgraph and it's cool. I like the charts and graphs I can make, but there's one thing I can't seem to do. I'd like to put actual numeric labels on the bars in my bar charts. Does anyone know of a way I can stick a little tag on each bar that specifies the exact number?

I took a look at the Chart modules, too, and I don't see anything like this in there either.

Any ideas/answers/suggestions are much appreciated.

Thanks,

scratch

Homer: And how is education suppose to make me feel smarter? Besides, everytime I learn something new it pushes some old stuff out of my brain. Remember when I took that home wine making course, and I forgot how to drive?

  • Comment on Specific numeric labels on charts with GIFgraph or Chart modules

Replies are listed 'Best First'.
Re: Specific numeric labels on charts with GIFgraph or Chart modules
by particle (Vicar) on Apr 24, 2002 at 21:54 UTC
    i have a suggestion:

    post some code. i've never used this module, but i'd be interested in learning a little about what you've made it do already. i'm not looking for a tutorial, just a working sample, or even a snippet of a function call.

    maybe i can even make an attempt at a good answer after a quick browse at your code, and a read of the module documentation or code.

    ~Particle ;

Re: Specific numeric labels on charts with GIFgraph or Chart modules
by thraxil (Prior) on Apr 25, 2002 at 14:43 UTC

    i'm pretty sure GIFgraph is what GD::Graph used to be called.

    step 1: upgrade to GD::Graph

    step 2: do:

    $graph->set(show_values => 1);

    i don't think GIFgraph had that option so you need to upgrade. there are other options for how the value is formatted, where it is placed in relation to the bar, etc.

    anders pearson

      Excellent. This is just what I wanted (and just what I found while perusing the GD::Graph docs this morning).

      Perl Monks kicks ass once again.

      scratch

      Homer: And how is education suppose to make me feel smarter? Besides, everytime I learn something new it pushes some old stuff out of my brain. Remember when I took that home wine making course, and I forgot how to drive?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://161806]
Approved by particle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-03-27 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?