sample92.pl
上传用户:shbosideng
上传日期:2013-05-04
资源大小:1555k
文件大小:0k
源码类别:

SNMP编程

开发平台:

C/C++

  1. use GIFgraph::pie;
  2. print STDERR "Processing sample 9-2n";
  3. @data = ( 
  4.     ["1st","2nd","3rd","4th","5th","6th"],
  5.     [    4,    2,    3,    4,    3,  3.5]
  6. );
  7. $my_graph = new GIFgraph::pie( 250, 200 );
  8. $my_graph->set( 
  9. title => 'A Pie Chart',
  10. label => 'Label',
  11. axislabelclr => 'white',
  12. dclrs => [ 'lblue' ],
  13. accentclr => 'lgray',
  14. );
  15. $my_graph->plot_to_gif( "sample92.gif", @data );
  16. exit;