GD::Graph
Help and Information with Perl's GD::Graph moduleSitemap:
Sample Listsample11.plsample12.plsample13.plsample14.plsample15.plsample16.plsample17.plsample18.plsample19.plsample1A.plsample1B.plsample21.plsample22.plsample23.plsample31.plsample41.plsample42.plsample51.plsample52.plsample53.plsample54.plsample55.plsample56.plsample57.plsample61.plsample62.plsample63.plsample64.plsample71.plsample91.plsample92.plsample93.plsample95.pl |
sample93.plUse the left-hand navigation menu to view the other samples included in the GD::Graph package, or use the links at the top to view other sections of the website. Generated Chartsample93.gif:![]() Code to generate these graphs:use GD::Graph::pie;
require 'save.pl'; print STDERR "Processing sample93\n"; @data = ( [ qw( 1st 2nd 3rd 4th 5th 6th 7th ) ], [ sort { $b <=> $a} (5.6, 2.1, 3.03, 4.05, 1.34, 0.2, 2.56) ] ); $my_graph = new GD::Graph::pie( 200, 200 ); $my_graph->set( start_angle => 90, '3d' => 0, label => 'Foo Bar', # The following should prevent the 7th slice from getting a label suppress_angle => 5, transparent => 0, ); $my_graph->plot(\@data); save_chart($my_graph, 'sample93'); |
