Server IP : 103.119.228.120 / Your IP : 3.137.219.68 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/ssl/local/ssl/local/ssl/local/share/man/man3/ |
Upload File : |
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "SVG::TT::Graph::Pie 3" .TH SVG::TT::Graph::Pie 3 "2014-09-23" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" SVG::TT::Graph::Pie \- Create presentation quality SVG pie graphs easily .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use SVG::TT::Graph::Pie; \& \& my @fields = qw(Jan Feb Mar); \& my @data_sales_02 = qw(12 45 21); \& \& my $graph = SVG::TT::Graph::Pie\->new({ \& \*(Aqheight\*(Aq => \*(Aq500\*(Aq, \& \*(Aqwidth\*(Aq => \*(Aq300\*(Aq, \& \*(Aqfields\*(Aq => \e@fields, \& }); \& \& $graph\->add_data({ \& \*(Aqdata\*(Aq => \e@data_sales_02, \& \*(Aqtitle\*(Aq => \*(AqSales 2002\*(Aq, \& }); \& \& print "Content\-type: image/svg+xml\en\en"; \& print $graph\->burn(); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This object aims to allow you to easily create high quality \&\s-1SVG\s0 pie graphs. You can either use the default style sheet or supply your own. Either way there are many options which can be configured to give you control over how the graph is generated \- with or without a key, display percent on pie chart, title, subtitle etc. .SH "METHODS" .IX Header "METHODS" .SS "\fInew()\fP" .IX Subsection "new()" .Vb 1 \& use SVG::TT::Graph::Pie; \& \& # Field names along the X axis \& my @fields = qw(Jan Feb Mar); \& \& my $graph = SVG::TT::Graph::Pie\->new({ \& # Required \& \*(Aqfields\*(Aq => \e@fields, \& \& # Optional \- defaults shown \& \*(Aqheight\*(Aq => \*(Aq500\*(Aq, \& \*(Aqwidth\*(Aq => \*(Aq300\*(Aq, \& \& \*(Aqshow_graph_title\*(Aq => 0, \& \*(Aqgraph_title\*(Aq => \*(AqGraph Title\*(Aq, \& \*(Aqshow_graph_subtitle\*(Aq => 0, \& \*(Aqgraph_subtitle\*(Aq => \*(AqGraph Sub Title\*(Aq, \& \& \*(Aqshow_shadow\*(Aq => 1, \& \*(Aqshadow_size\*(Aq => 1, \& \*(Aqshadow_offset\*(Aq => 15, \& \& \*(Aqkey_placement\*(Aq => \*(AqR\*(Aq, \& \& # data by pie chart wedges: \& \*(Aqshow_data_labels\*(Aq => 0, \& \*(Aqshow_actual_values\*(Aq => 0, \& \*(Aqshow_percent\*(Aq => 1, \& \*(Aqrollover_values\*(Aq => 0, \& \*(Aqshow_path_title\*(Aq => 0, \& \*(Aqshow_title_fields\*(Aq => 0, \& \& # data on key: \& \*(Aqshow_key_data_labels\*(Aq => 1, \& \*(Aqshow_key_actual_values\*(Aq => 1, \& \*(Aqshow_key_percent\*(Aq => 0, \& \& \*(Aqexpanded\*(Aq => 0, \& \*(Aqexpand_greatest\*(Aq => 0, \& \& # Stylesheet defaults \& \*(Aqstyle_sheet\*(Aq => \*(Aq/includes/graph.css\*(Aq, # internal stylesheet \& \*(Aqstyle_sheet_field_names\*(Aq => 0, \& \*(Aqrandom_colors\*(Aq => 0, \& \& }); .Ve .PP The constructor takes a hash reference, fields (the name for each slice on the pie) \s-1MUST\s0 be set, all other values are defaulted to those shown above \- with the exception of style_sheet which defaults to using the internal style sheet. .SS "\fIadd_data()\fP" .IX Subsection "add_data()" .Vb 1 \& my @data_sales_02 = qw(12 45 21); \& \& $graph\->add_data({ \& \*(Aqdata\*(Aq => \e@data_sales_02, \& \*(Aqtitle\*(Aq => \*(AqSales 2002\*(Aq, \& }); .Ve .PP This method allows you to add data to the graph object, only the first data set added will be used! .SS "\fIclear_data()\fP" .IX Subsection "clear_data()" .Vb 1 \& my $graph\->clear_data(); .Ve .PP This method removes all data from the object so that you can reuse it to create a new graph but with the same config options. .SS "\fIburn()\fP" .IX Subsection "burn()" .Vb 1 \& print $graph\->burn(); .Ve .PP This method processes the template with the data and config which has been set and returns the resulting \s-1SVG.\s0 .PP This method will croak unless at least one data set has been added to the graph object. .SS "config methods" .IX Subsection "config methods" .Vb 2 \& my $value = $graph\->method(); \& my $confirmed_new_value = $graph\->method($value); .Ve .PP The following is a list of the methods which are available to change the config of the graph object after it has been created. .IP "\fIheight()\fR" 4 .IX Item "height()" Set the height of the graph box, this is the total height of the \s-1SVG\s0 box created \- not the graph it self which auto scales to fix the space. .IP "\fIwidth()\fR" 4 .IX Item "width()" Set the width of the graph box, this is the total width of the \s-1SVG\s0 box created \- not the graph it self which auto scales to fix the space. .IP "\fIcompress()\fR" 4 .IX Item "compress()" Whether or not to compress the content of the \s-1SVG\s0 file (Compress::Zlib required). .IP "\fItidy()\fR" 4 .IX Item "tidy()" Whether or not to tidy the content of the \s-1SVG\s0 file (XML::Tidy required). .IP "\fIstyle_sheet()\fR" 4 .IX Item "style_sheet()" Set the path to an external stylesheet, set to '' if you want to revert back to using the defaut internal version. .Sp The default stylesheet handles up to 12 data sets. All data series over the 12th will have no style and be in black. If you have over 12 data sets you can assign them all random colors (see the \fIrandom_color()\fR method) or create your own stylesheet and add the additional settings for the extra data sets. .Sp To create an external stylesheet create a graph using the default internal version and copy the stylesheet section to an external file and edit from there. .IP "\fIrandom_colors()\fR" 4 .IX Item "random_colors()" Use random colors in the internal stylesheet .IP "\fIstyle_sheet_field_names()\fR" 4 .IX Item "style_sheet_field_names()" If you use the \fIstyle_sheet_field_names()\fR option then you can use the field names within your stylesheet. This allows consistent use of styles. The names should be: .RS 4 .IP "<field>_dataPoint" 4 .IX Item "<field>_dataPoint" .PD 0 .IP "<field>_key" 4 .IX Item "<field>_key" .RE .RS 4 .RE .IP "\fIshow_graph_title()\fR" 4 .IX Item "show_graph_title()" .PD Whether to show a title on the graph, default is '0'. .IP "\fIgraph_title()\fR" 4 .IX Item "graph_title()" What the title on the graph should be. .IP "\fIshow_graph_subtitle()\fR" 4 .IX Item "show_graph_subtitle()" Whether to show a subtitle on the graph, default is '0'. .IP "\fIgraph_subtitle()\fR" 4 .IX Item "graph_subtitle()" What the subtitle on the graph should be. .IP "\fIshow_shadow()\fR" 4 .IX Item "show_shadow()" Turn the shadow on and off, default to '1', set to '0' if you don't want it. It is automatically turned off if you extract one section of the pie. .IP "\fIshadow_size()\fR" 4 .IX Item "shadow_size()" Size of the shadow if shown, measured as percentage of pie chart radius, default of 1 being the same size as the pie. .IP "\fIshadow_offset()\fR" 4 .IX Item "shadow_offset()" Offset (in pixels) of shadow to bottom-right in relation to the center of the pie chart. .IP "\fIkey()\fR" 4 .IX Item "key()" Whether to show a key, defaults to 0, set to \&'1' if you want to show it. .IP "\fIkey_placement()\fR" 4 .IX Item "key_placement()" Defaults to 'R' \- right, can be \&'R', 'L', 'T' or 'B'. .IP "\fIshow_data_labels()\fR" 4 .IX Item "show_data_labels()" Show label on pie chart, defaults to '0', can be set to '1'. .IP "\fIshow_actual_values()\fR" 4 .IX Item "show_actual_values()" Show values on pie chart, defaults to '0', can be set to '1'. .IP "\fIshow_percent()\fR" 4 .IX Item "show_percent()" Show percent (rounded) on the pie chart, defaults to '1', can be set to '0'. .IP "\fIrollover_values()\fR" 4 .IX Item "rollover_values()" Shows data field and value when the mouse is over a piechart wedge. .IP "\fIshow_path_title()\fR" 4 .IX Item "show_path_title()" Whether to add the title attribute to the data path tags, which will show \*(L"tooltips\*(R" when hovering over the bar area. .IP "\fIshow_title_fields()\fR" 4 .IX Item "show_title_fields()" Whether to show field values as title elements in path tag, defaults to 0, set to '1' to turn on. Suggest on single add_data graphs, for overlapping graphs leave off to see the title value used in the add_data call. .IP "\fIshow_key_data_labels()\fR" 4 .IX Item "show_key_data_labels()" Show label on the key, defaults to '1', can be set to '0'. .IP "\fIshow_key_actual_values()\fR" 4 .IX Item "show_key_actual_values()" Show value on the key, defaults to '1', can be set to '0'. .IP "\fIshow_key_percent()\fR" 4 .IX Item "show_key_percent()" Show percent (rounded) on the key, defaults to '0', can be set to '1'. .IP "\fIexpanded()\fR" 4 .IX Item "expanded()" All slices of pie are exploded out, defaults to '0'. Do not set to '1' if you are going to use \fIexpanded_greatest()\fR. .IP "\fIexpand_greatest()\fR" 4 .IX Item "expand_greatest()" The largest slice of pie is exploded out from the pie, defaults to '0'. Useful if you are only showing the percentages (which are rounded) but still want to visually show which slice was largest. .Sp Do not set to '1' if you are going to use \fIexpanded()\fR. .SH "EXAMPLES" .IX Header "EXAMPLES" For examples look at the project home page http://leo.cuckoo.org/projects/SVG\-TT\-Graph/ .SH "EXPORT" .IX Header "EXPORT" None by default. .SH "SEE ALSO" .IX Header "SEE ALSO" SVG::TT::Graph, SVG::TT::Graph::Line, SVG::TT::Graph::Bar, SVG::TT::Graph::BarHorizontal, SVG::TT::Graph::BarLine, SVG::TT::Graph::TimeSeries, SVG::TT::Graph::XY, Compress::Zlib, XML::Tidy