- add horizontal legend boxes
+ - add a new style "primary" which is primary_red with a light grey
+ background, and made that the default, so the default graphs aren't
+ quite so ugly.
+
Imager-Graph 0.05 - 17 December 2007
=================
=over
+=item primary
+
+a light grey background with no outlines. Uses primary colors for the
+data fills.
+
+This is the default style.
+
=item primary_red
a light red background with no outlines. Uses primary colors for the
-data fills. This style is compatible with all versions of Imager.
+data fills.
Graphs drawn using this style should save well as a gif, even though
some graphs may perform a slight blur.
-This is the default style.
+This was the default style, but the red was too loud.
=item mono
This style outlines the legend if present and outlines the hashed fills.
-This and following styles require versions of Imager after 0.38.
-
=item fount_lin
designed as a "pretty" style this uses linear fountain fills for the
\%style_defs;
}
-my $def_style = 'primary_red';
+my $def_style = 'primary';
my %styles =
(
+ primary =>
+ {
+ fills=>
+ [
+ qw(FF0000 00FF00 0000FF C0C000 00C0C0 FF00FF)
+ ],
+ fg=>'000000',
+ bg=>'E0E0E0',
+ legend=>
+ {
+ #patchborder=>'000000'
+ },
+ },
primary_red =>
{
fills=>
title=>{ text=>'Imager::Graph::Pie', size=>36 },
features=>{ labelspconly=>1, _debugblur=>1,
legend=>1 },
- legend=>{ border=>'000000', fill=>'FF8080', },
+ legend=>{ border=>'000000', fill=>'C0C0C0', },
fills=>[ qw(404040 606060 808080 A0A0A0 C0C0C0 E0E0E0) ],
);