Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.685 kb
use v6;
BEGIN { @*INC.push: '../svg/lib', 'lib' }
use SVG;
use SVG::Plot;
use SVG::Plot::Pie;
my @data1 = map *.abs, 5, 6, 4, -3, -7, 12, 1, 1, 3, 7;
my @data2 = 2, 8, 0, 5, 6, 7, 8, -1, -1, -3;
my @labels = <the quick brown fox jumps over the lazy red dog>;
say SVG.serialize:
SVG::Plot.new(
width => 400,
height => 350,
values => ([@data1], [@data2]),
title => 'Some data',
legends => ('Data series 1', 'No. 2'),
:@labels,
links => <http://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog>,
).plot(:lines);
# vim: ft=perl6 sw=4 ts=4 expandtab
Jump to Line
Something went wrong with that request. Please try again.