Finance-ChartHist
view release on metacpan or search on metacpan
lib/Finance/ChartHist.pm view on Meta::CPAN
y_max_value => $y_max,
y_min_value => $y_min,
y_tick_number => $y_max - $y_min,
x_tick_offset => $x_label_offset,
x_label_skip => $x_label_skip,
x_label_position => 1/2,
box_axis => 0,
r_margin => 10,
line_width => 1,
transparent => 0
);
$graph->plot(\@{ $graph_data->{$self->{symbols}} });
## Keep a copy of the graph
$self->{graph} = $graph;
}
lib/Finance/ChartHist.pm view on Meta::CPAN
y_max_value => $y_max,
y_min_value => $y_min,
y_tick_number => $y_max - $y_min,
x_tick_offset => $x_label_offset,
x_label_skip => $x_label_skip,
x_label_position => 1/2,
box_axis => 0,
r_margin => 10,
line_width => 1,
transparent => 0
) or warn $graph->error;
## Set up the data into the required format
my @formated_data = ();
foreach my $symbol (@{ $self->{symbols} }) {
push @formated_data, $graph_data->{$symbol}[1];
}
unshift @formated_data, $graph_data->{$self->{symbols}[0]}[0];
$graph->plot(\@formated_data) or die $graph->error;
( run in 0.333 second using v1.01-cache-2.11-cpan-0a6323c29d9 )