The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl
use strict;
use warnings;
use Tk;
use Tk::Chart::Bars;

my $mw = MainWindow->new(
  -title      => 'Tk::Chart::Bars No legend',
  -background => 'white',
);

my $chart = $mw->Bars(
  -title      => 'Tk::Chart::Bars - no legend',
  -xlabel     => 'X Label',
  -background => 'snow',
  -ylabel     => 'Y Label',
)->pack(qw / -fill both -expand 1 /);

my @data = (
  [ '1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th' ],
  [ 4,     2,     16,    2,     3,     5.5,   7,     5,     3 ],
  [ 1,     2,     4,     6,     3,     17.5,  1,     20,    10 ]
);

# Create the graph
$chart->plot( \@data );
MainLoop();