NAME
SVG::Timeline::Compact - A Moose based SVG Timeline drawing class.
VERSION
version 0.001
SYNOPSIS
use SVG::Slotted::Timeline;
use DateTime::Format::Natural;
my $svg=SVG::Slotted::Timeline->new();
my $parser = DateTime::Format::Natural->new;
my $start=$parser->parse_datetime("12pm");
my $end=$parser->parse_datetime("1pm");
$svg->add_event(
start=>$start,
end=>$end,
name=>"Event 1",
tooltip=>"First Event of the example",
color=>"#ff00ff"
);
$start=$parser->parse_datetime("12:45pm");
$end=$parser->parse_datetime("1:20pm");
$svg->add_event(
start=>$start,
end=>$end,
name=>"Event 2",
tooltip=>"Second Event of the example",
color=>"#ff000f"
);
$start=$parser->parse_datetime("3:00pm");
$end=$parser->parse_datetime("5:20pm");
$svg->add_event(
start=>$start,
end=>$end,
name=>"Event 3",
tooltip=>"Third Event of the example",
color=>"#fff00f"
);
open my $fh,">","test.svg" or die "unable to open test.svg for writing";
print $fh $svg->to_svg;
DESCRIPTION
This module originated because SVG::Timeline did not meet my requirements.
The major difference with SVG::Timeline are as follows
Start and End are actual DateTime Objects.
Auto-calculation of timescale ( min, hours, days, months, years ) based on the events and grid size.
Auto Layout to fit multiple events on same row.
Tooltips.
=end html
Takes the following parameters: The hash fields are:AUTHOR
Vijayvithal <jvs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Vijayvithal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 260:
Unknown directive: =method
- Around line 269:
Unknown directive: =method
- Around line 281:
Unknown directive: =method