In the last post, I changed three of the parameters. It actually looks fine if you take all of the defaults
my $chart = Chart::Strip->new; $chart->add_data($data);
This gives a green line, no title, and a transparent background.
(Hm...it's too bad we can't pass the data to the contructor.)
my $chart = Chart::Strip->new(data => $data);
Anyway, like I said, I usually look at it locally in eog rather than a browser, so the transparent background was undesirable
So while I was fiddling with the background, I also added the title and the color change. I've since made the line thicker and added a drop shadow
There are a bunch more options, but I'm grateful that they all have sensible defaults.
Recent Comments