+{
+ my $column = Imager::Graph::Column->new();
+ ok($column, "creating column chart object");
+
+ $column->add_data_series(\@data);
+ $column->add_data_series([ -50, -30, 20, 10, -10, 25, 10 ]);
+ $column->set_labels(\@labels);
+
+ my $fountain = Imager::Fountain->simple(colors => [ "#C0C0FF", "#E0E0FF" ],
+ positions => [ 0, 1 ]);
+
+ my %fill =
+ (
+ fountain => "linear",
+ segments => $fountain,
+ xa_ratio => -0.1,
+ ya_ratio => 0.5,
+ xb_ratio => 1.1,
+ yb_ratio => 0.55,
+ );
+
+ my $img1 = $column->draw
+ (
+ features => "outline",
+ negative_bg => \%fill,
+ );
+ ok($img1, "drawing column chart - negative_bg is a fill");
+
+ $img1->write(file=>'testout/t12_column3.ppm') or die "Can't save img1: ".$img1->errstr."\n";
+}
+