1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use SVG::TT::Graph::BarHorizontal; use CGI::Carp qw/fatalsToBrowser/; my @fields = qw(Jan Feb Mar); my @data_sales_02 = qw(12 45 21); my $graph = SVG::TT::Graph::BarHorizontal->new({ 'height' => '500', 'width' => '300', 'fields' => \@fields, }); $graph->add_data({ 'data' => \@data_sales_02, 'title' => 'Sales 2002', }); open my $G, '>', 'graph.svg'; print $G $graph->burn(); close $G; print "Content-type: image/svg+xml\n\n"; print $graph->burn();
1
2
3
4
5
6
7
8
9
10
11
12
������ÿœYmsÚÆþîüSõCn;Aom®áÛ7M_&³HšF+žþ÷ÝX&*Ï`±:çìsÞÏ3hÈß»TUW~z÷êäâ»Î]{øñ}ØÓÞ?^
úmP*ö¡Ú֎ΰ¿\RkZ÷Vyu L£(hjÚ|>WçUÕ'Úð^3uÝÐî»í
Wøœ¡×8¿r
]µ#[Áíž�Üï5wìhz©Tu])u&ÓèR©ó/O_ùKEð1UDï±Ë-ãf:ß$!i.\ÇûŒÐh4xªÅ+ø£äšTRºvHIDmÄM¹AÍá°ÙŒI0 <ÝCD)õà÷#h0 >H0÷Cd\Ñi%W^ãYnlS°éÄn,ZºM)Àç{X@-gì 8É€ÿ€-z©DticRïßÛÖ°õû«íGhûÁÆ¡?CÆ~HKCžr3»ýšœ:QÑÈWÄú< ýس¿pW×m~?×[Ÿ"¿À·¯x6DÜ,©:¯ç3ßæžBâ±Ô×)8%ô7 ³j ×uéÇàQ*Ìñ
t#À wÈv:ÿ{+ÈâAäDhP©Þ8Þ|ÜfâYS?lÂ̱mŸÍäÁ÷ºžäïEæü6ÁšÕÚÌwÙ¥:ÄUÞ�CÈFCgŒ"ÐoÂÈwmOeñhg
qmà0÷Æáùáž©¥T²pÀÁ¢ÐÿL˵ÈdÜTì)Ù&±cÓãÑ5æSq=ËÚMID]z&vÑB82¢.;ÀIßÌ8Ë28Ô³ÿM,Â4;ÍxüÃweVh6w}ß1ÐØ$"ï}ǯŸl÷JÑ3ôoHeXÓ&4ŒNs$HTÌÝÒMWëiÂñÊ\x«~ŠKãÊ_Ä£¢ù³¥ËB\N·8r+ÅMñÁß'¢óœhžlZÑLœMÆݬ¬ýù'oXwi»äÝO%£IÒGCjEÀâóÙyÅr ÃÉ€Ðí]2êlm÷Ðn
ÚÖ°×÷÷=hÝw[кíÀÕÝãm§ußï>lpåæ ªc;3êña?bE1ê+Ú`W$ðÛ»¡èüÛ9UòQÝ¡¥ åû¡-I H
<.|èw=òWhßÝÝw Ó¿éÞ>ôïnrØBjÇæZ °GbÎpž<qïÁxBxÐ AqØŹià eäI$ó¡Ø6ÌðN
IJPç.Wb¿€säÜ̹ÇÎSÑáÅûÏ.89/aĹV�a\)Y:z%bóÚ3fŠ6§_€ÌEe4¿Ú£9R®[䌣ßÕ¥ãhM,±ÿÑpºÂãøÌ0j87>§0qC$J$ eyh¡,FB¯Û¿î
E(|Ü!d¶ì\,€ñ*æÊvÈì£C\˲â0cÉù!ò8Œ'€âÞÙ>?ù E+зþx\�STÊI¥sÂQÜc8ÁÉû1uÇØÁ J£#à()yÙúba]Üà=÷a+j)uËŒÛüÜýžfuŽØÏ=3²'âÆí»\9#T0hhÁ;S³Ør÷ór�d"|àžBd§¥0ò±+CEè'Ûyr2œÅqkJPÚbÆq3®Ë(;×ñÝÕcÐÉür_`ÞèNŠ!Ú±êOfœ±êOµ³UZ;_%ÜE@°¶ÚÊip3<å%p2|*M!¡ÀP;×a*�lp,3MÕúµÿUåaxßÇÂ'
Ë®ŠBÇx1Cû"Ï ëì4³ ÝgÒ(ÍÇÖ;SÆ,®ò,[ùØÃœcHïÔt3³HîÈ Œûñ.4Nübn¬4k§ÛEþ^¹.¬¡ouCÂgd&5oH9ËX3bÞ©>q|J|ŽÄO3jOhaäX3#PN ¢XÉFµJú5}lš5êBŒB ïhî5¹ÜØ%rå)_³¬iw5õlc×UÖÔNEÖübä5;;'Sä3<O¹ÙsíD¡öUå6Óô¬Üå6ÔZŠgÆ®î»qj�oìá¢Æñ\dŒå/èz®6Jt5ÌczÉ8(̪zZ}T2KÆAÉdfqÔt2ʧjU5Ê ïPÆ3Ê<(£ªgêy¶æQ3Ê<¬5jœú>e1£Ì2ªvVZæÍÃ3J_3àûÃÁW=ÛfÛDlr<./óCiáÁPzwÿ(Ž¢éK
š5è×ÔZÃÔO«ò³OŒØöðño}Å;ÊäT7oæñóFQÈÆ<]|µ»=äGì}îOý¶E ãôÑÖªÞšÕsù¹æi dcÿ%j[Š =£jªFîÚKË\^ÈúÁákT07»Ã*{vXDþâ!œß1q^yÓêߟü'Ãäø²rÅ£ü³þS5þÿÕÝöÒ��