App-Licensecheck
view release on metacpan or search on metacpan
t/devscripts/artistic-2-0-modules.pm view on Meta::CPAN
use SVG::Box;
enum SVG::Plot::AxisPosition <Zero SmallestValue LargestValue>;
unit class SVG::Plot;
has $.height = 300;
has $.width = 500;
has $.fill-width = 0.80;
has $.label-font-size = 12;
has $.legend-font-size = $!label-font-size;
has @.legends is rw;
has @.values is rw;
has @.x is rw; # only used in 'xy' variants
has @.labels is rw = @!values[0].keys;
has @.links is rw;
has $.plot-width = $!width * 0.80;
has $.plot-height = $!height * (@!legends ?? 0.5 !! 0.65);
has $.title = '';
has &.x-tick-step = -> $max {
10 ** $max.log10.floor / 2
}
has &.y-tick-step = -> $max {
10 ** $max.log10.floor / 2
}
( run in 1.081 second using v1.01-cache-2.11-cpan-49f99fa48dc )