NAME
GD::Graph::Hooks - Kludgey way to add callback hooks to GD::Graph
SYNOPSIS
use GD::Graph::Hooks;
use GD::Graph; # the load order does not matter
my $graph = GD::Graph::lines->new(500,500);
$graph->add_hook( GD::Graph::Hooks::PRE_DATA => sub { ... stuff here ... } );
$graph->plot([[1..3], [1..3]]);
Possible hooks follow. This documentation is sparse because you either got what you needed above already or you'll need to go source diving anyway. The hooks appear as pairs because they are just different names for the same event.
- POST_INIT / PRE_TEXT
- POST_TEXT / PRE_AXIS
- POST_AXIS / PRE_DATA
- POST_DATA / PRE_VALUES
- POST_VALUES / PRE_LEGEND
- POST_LEGEND / PRE_RETURN
AUTHOR
Paul Miller <jettero@cpan.org>
I am using this software in my own projects... If you find bugs, please please please let me know. There is a mailing list with very light traffic that you might want to join: http://groups.google.com/group/stockmonkey/.
COPYRIGHT
Copyright © 2013 Paul Miller
LICENSE
This is released under the Artistic License. See perlartistic.
SEE ALSO
perl(1), GD::Graph