PostScript::Graph::Bar

PostScript::Graph::Bar Perl module can draw a bar chart on a postscript file.
Download

PostScript::Graph::Bar Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Willmot
  • Publisher web site:
  • http://search.cpan.org/~cpwillmot/PostScript-Graph-1.02/Graph/Bar.pm

PostScript::Graph::Bar Tags


PostScript::Graph::Bar Description

PostScript::Graph::Bar Perl module can draw a bar chart on a postscript file. PostScript::Graph::Bar Perl module can draw a bar chart on a postscript file.SYNOPSISSimplestTake labels and values from a csv file and output as a bar chart on a postscript file. use PostScript::Graph::Bar; my $bar = new PostScript::Graph::Bar(); $bar->build_chart("survey.csv"); $bar->output("survey");Typical use PostScript::Graph::Bar; my $bar = new PostScript::Graph::Bar( file => { paper => 'A4', landscape => 1, }, layout => { background => , heading => 'Test results', }, y_axis => { smallest => 4, }, style => { auto => , } ); $bar->series_from_file( 'data.csv' ); $bar->build_chart(); $bar->output( 'results' );The file 'data.csv' has a row of headings followed by 4 rows of 10 items. This produces a bar chart with four groups of ten bars each. The groups are labelled with the first value in each row. The bars in each group are coloured ranging from brown through green and then shades of blue. A Key links the row of headings to each colour. In addition, the background is beige, a heading is placed above the chart and the y axis is not too crowded.All options use PostScript::Graph::Bar; my $bar = new PostScript::Graph::Bar( file => { # Paper size, orientation etc # See PostScript::File }, layout => { # General proportions, headings # See PostScript::Graph::Paper }, x_axis => { # All settings for X axis # See PostScript::Graph::Paper }, y_axis => { # All settings for Y axis # See PostScript::Graph::Paper }, style => { # Appearance of bars # See PostScript::Graph::Style }, key => { # Settings for any Key area # See PostScript::Graph::Key }, show_key => 1, labels_row => 1, ); Requirements: · Perl


PostScript::Graph::Bar Related Software