App-idxdb
view release on metacpan or search on metacpan
lib/App/idxdb.pm view on Meta::CPAN
push @rows, $row;
}
if ($args{graph}) {
require Chart::Gnuplot;
require Color::RGB::Util;
require ColorTheme::Distinct::WhiteBG;
require File::Temp;
my ($tempfh, $tempfilename) = File::Temp::tempfile();
$tempfilename .= ".png";
my $theme = ColorTheme::Distinct::WhiteBG->new;
my @colors = map { '#'.$theme->get_item_color($_) } ($theme->list_items);
my $chart = Chart::Gnuplot->new(
output => $tempfilename,
title => "$stock ownership from ".$args{date_start}->ymd." to ".$args{date_end}->ymd,
xlabel => 'date',
ylabel => "\%",
timeaxis => 'x',
lib/App/idxdb.pm view on Meta::CPAN
push @{ $stock_rows{$code} }, $row;
}
if ($args{graph}) {
require Chart::Gnuplot;
require Color::RGB::Util;
require ColorTheme::Distinct::WhiteBG;
require File::Temp;
my ($tempfh, $tempfilename) = File::Temp::tempfile();
$tempfilename .= ".png";
my $theme = ColorTheme::Distinct::WhiteBG->new;
my @colors = map { '#'.$theme->get_item_color($_) } ($theme->list_items);
my $chart = Chart::Gnuplot->new(
output => $tempfilename,
title => join(",", @$fields)." of ".join(",",@$stocks)." from $mindate to $maxdate",
xlabel => 'date',
ylabel => $fields->[0],
(@$fields > 1 ? (y2label =>
( run in 0.631 second using v1.01-cache-2.11-cpan-788537b7465 )