├── TECH_NOTES ├── clang-checker ├── README ├── TODO ├── patch.txt └── tests │ ├── Zpp.c │ ├── num_args.c │ ├── storage.c │ ├── uninit-strs.c │ ├── uninit.c │ └── uninit2.c ├── cron ├── CLIENT_README ├── MASTER_README ├── check_parameters.php ├── compile_results.php ├── config.php ├── config.sh ├── cron.php ├── cron.sh ├── database.php ├── find_tested.php ├── graph.php ├── lcov_epilog.inc ├── lcov_prolog.inc ├── lib │ ├── jpgraph │ │ ├── Examples │ │ │ ├── accbarex1.php │ │ │ ├── alphabarex1.php │ │ │ ├── antispamex01.php │ │ │ ├── backgroundex01.php │ │ │ ├── backgroundex02.php │ │ │ ├── backgroundex03.php │ │ │ ├── balloonex1.php │ │ │ ├── bar2scalesex1.php │ │ │ ├── bar_csimex1.php │ │ │ ├── bar_csimex2.php │ │ │ ├── bar_csimex3.php │ │ │ ├── barformatcallbackex1.php │ │ │ ├── bargradex1.php │ │ │ ├── bargradex2.php │ │ │ ├── bargradex3.php │ │ │ ├── bargradex4.php │ │ │ ├── bargradex5.php │ │ │ ├── bargradex6.php │ │ │ ├── bargradsmallex1.php │ │ │ ├── bargradsmallex2.php │ │ │ ├── bargradsmallex3.php │ │ │ ├── bargradsmallex4.php │ │ │ ├── bargradsmallex5.php │ │ │ ├── bargradsmallex6.php │ │ │ ├── bargradsmallex7.php │ │ │ ├── bargradsmallex8.php │ │ │ ├── barimgex1.php │ │ │ ├── barintex1.php │ │ │ ├── barintex2.php │ │ │ ├── barline_csimex1.php │ │ │ ├── barlinealphaex1.php │ │ │ ├── barlinefreq_csimex1.php │ │ │ ├── barlinefreqex1.php │ │ │ ├── barpatternex1.php │ │ │ ├── barscalecallbackex1.php │ │ │ ├── bartutex1.php │ │ │ ├── bartutex12.php │ │ │ ├── bartutex2.php │ │ │ ├── bartutex3.php │ │ │ ├── bartutex4.php │ │ │ ├── bartutex5.php │ │ │ ├── bartutex6.php │ │ │ ├── bezierex1.php │ │ │ ├── bkgimgflagex1.php │ │ │ ├── bkgimgflagex2.php │ │ │ ├── bkgimgflagex3.php │ │ │ ├── bkgimgflagex4.php │ │ │ ├── blueblack400x300grad.png │ │ │ ├── boxstockcsimex1.php │ │ │ ├── boxstockex1.php │ │ │ ├── boxstockex2.php │ │ │ ├── builtinplotmarksex1.php │ │ │ ├── canvas_jpgarchex.php │ │ │ ├── canvasbezierex1.php │ │ │ ├── canvasex01.php │ │ │ ├── canvasex02.php │ │ │ ├── canvasex03.php │ │ │ ├── canvasex04.php │ │ │ ├── canvasex05.php │ │ │ ├── canvasex06.php │ │ │ ├── canvaspiralex1.php │ │ │ ├── centeredlineex01.php │ │ │ ├── centeredlineex02.php │ │ │ ├── centeredlineex03.php │ │ │ ├── centerlinebarex1.php │ │ │ ├── dateaxisex1.php │ │ │ ├── dateaxisex2.php │ │ │ ├── dateaxisex3.php │ │ │ ├── dateaxisex4.php │ │ │ ├── dbschemaex1.php │ │ │ ├── dupyaxisex1.php │ │ │ ├── example0.php │ │ │ ├── example1.1.php │ │ │ ├── example1.2.php │ │ │ ├── example1.php │ │ │ ├── example10.php │ │ │ ├── example11.php │ │ │ ├── example13.php │ │ │ ├── example14.php │ │ │ ├── example15.php │ │ │ ├── example16.1.php │ │ │ ├── example16.2.php │ │ │ ├── example16.3.php │ │ │ ├── example16.4.php │ │ │ ├── example16.5.php │ │ │ ├── example16.6.php │ │ │ ├── example16.php │ │ │ ├── example17.php │ │ │ ├── example18.php │ │ │ ├── example19.1.php │ │ │ ├── example19.php │ │ │ ├── example2.1.php │ │ │ ├── example2.5.php │ │ │ ├── example2.6.php │ │ │ ├── example2.php │ │ │ ├── example20.1.php │ │ │ ├── example20.2.php │ │ │ ├── example20.3.php │ │ │ ├── example20.4.php │ │ │ ├── example20.5.php │ │ │ ├── example20.php │ │ │ ├── example21.php │ │ │ ├── example22.php │ │ │ ├── example23.php │ │ │ ├── example24.php │ │ │ ├── example25.1.php │ │ │ ├── example25.2.php │ │ │ ├── example25.php │ │ │ ├── example26.1.php │ │ │ ├── example26.php │ │ │ ├── example27.1.php │ │ │ ├── example27.2.php │ │ │ ├── example27.3.php │ │ │ ├── example27.php │ │ │ ├── example28.1.php │ │ │ ├── example28.2.php │ │ │ ├── example28.3.php │ │ │ ├── example28.php │ │ │ ├── example3.1.php │ │ │ ├── example3.2.1.php │ │ │ ├── example3.2.2.php │ │ │ ├── example3.2.php │ │ │ ├── example3.3.php │ │ │ ├── example3.4.php │ │ │ ├── example3.php │ │ │ ├── example4.php │ │ │ ├── example5.1.php │ │ │ ├── example5.php │ │ │ ├── example6.1.php │ │ │ ├── example6.2.php │ │ │ ├── example6.php │ │ │ ├── example7.php │ │ │ ├── example8.1.php │ │ │ ├── example8.php │ │ │ ├── example9.1.php │ │ │ ├── example9.2.php │ │ │ ├── example9.php │ │ │ ├── exampleex9.php │ │ │ ├── fieldscatterex1.php │ │ │ ├── filledgridex1.php │ │ │ ├── filledline01.php │ │ │ ├── filledlineex01.1.php │ │ │ ├── filledlineex01.php │ │ │ ├── filledlineex02.php │ │ │ ├── filledlineex03.php │ │ │ ├── filledstepstyleex1.php │ │ │ ├── fixscale_radarex1.php │ │ │ ├── funcex1.php │ │ │ ├── funcex2.php │ │ │ ├── funcex3.php │ │ │ ├── funcex4.php │ │ │ ├── ganttconstrainex0.php │ │ │ ├── ganttconstrainex1.php │ │ │ ├── ganttconstrainex2.php │ │ │ ├── ganttcsimex01.php │ │ │ ├── ganttcsimex02.php │ │ │ ├── ganttex00.php │ │ │ ├── ganttex01.php │ │ │ ├── ganttex02.php │ │ │ ├── ganttex03.php │ │ │ ├── ganttex04.php │ │ │ ├── ganttex05.php │ │ │ ├── ganttex06.php │ │ │ ├── ganttex07.php │ │ │ ├── ganttex08.php │ │ │ ├── ganttex09.php │ │ │ ├── ganttex10.php │ │ │ ├── ganttex11.php │ │ │ ├── ganttex12.php │ │ │ ├── ganttex13.php │ │ │ ├── ganttex14.php │ │ │ ├── ganttex15.php │ │ │ ├── ganttex16.php │ │ │ ├── ganttex17.php │ │ │ ├── ganttex18.php │ │ │ ├── ganttex19.php │ │ │ ├── ganttex30.php │ │ │ ├── ganttex_slice.php │ │ │ ├── gantthgridex1.php │ │ │ ├── gantthourex1.php │ │ │ ├── gantthourminex1.php │ │ │ ├── gantticonex1.php │ │ │ ├── ganttmonthyearex1.php │ │ │ ├── ganttmonthyearex2.php │ │ │ ├── ganttmonthyearex3.php │ │ │ ├── ganttsimpleex1.php │ │ │ ├── gradbkgex1.php │ │ │ ├── gradlinefillex1.php │ │ │ ├── gradlinefillex2.php │ │ │ ├── gradlinefillex3.php │ │ │ ├── gradlinefillex4.php │ │ │ ├── groupbarex1.php │ │ │ ├── horizbarex1.php │ │ │ ├── horizbarex2.php │ │ │ ├── horizbarex3.php │ │ │ ├── horizbarex4.php │ │ │ ├── horizbarex6.php │ │ │ ├── imgmarkercsimex1.php │ │ │ ├── imgmarkerex1.php │ │ │ ├── impulsex1.php │ │ │ ├── impulsex2.php │ │ │ ├── impulsex3.php │ │ │ ├── impulsex4.php │ │ │ ├── inyaxisex1.php │ │ │ ├── inyaxisex2.php │ │ │ ├── inyaxisex3.php │ │ │ ├── lightbluedarkblue400x300grad.png │ │ │ ├── linebarcentex1.php │ │ │ ├── linebarex1.php │ │ │ ├── linebarex2.php │ │ │ ├── linebarex3.php │ │ │ ├── linegraceex.php │ │ │ ├── lineiconex1.php │ │ │ ├── lineiconex2.php │ │ │ ├── linlogex1.php │ │ │ ├── listallflags.php │ │ │ ├── listallflags_helper.php │ │ │ ├── listfontsex1.php │ │ │ ├── logbarex1.php │ │ │ ├── loglogex1.php │ │ │ ├── manscaleex1.php │ │ │ ├── manscaleex2.php │ │ │ ├── manscaleex3.php │ │ │ ├── manscaleex4.php │ │ │ ├── manualtickex1.php │ │ │ ├── manualtickex2.php │ │ │ ├── markflagex1.php │ │ │ ├── multconstganttex01.php │ │ │ ├── mulyaxiscsimex1.php │ │ │ ├── mulyaxisex1.php │ │ │ ├── negbarvalueex01.php │ │ │ ├── nullvalueex01.php │ │ │ ├── partiallyfilledlineex1.php │ │ │ ├── penguin.png │ │ │ ├── pie3d_csimex1.php │ │ │ ├── pie3dex1.php │ │ │ ├── pie3dex2.php │ │ │ ├── pie3dex3.php │ │ │ ├── pie3dex4.php │ │ │ ├── pie3dex5.php │ │ │ ├── pie_csimex1.php │ │ │ ├── piebkgex1.php │ │ │ ├── piec_csimex1.php │ │ │ ├── piecex1.php │ │ │ ├── piecex2.php │ │ │ ├── pieex1.php │ │ │ ├── pieex2.php │ │ │ ├── pieex3.php │ │ │ ├── pieex4.php │ │ │ ├── pieex5.php │ │ │ ├── pieex6.php │ │ │ ├── pieex7.php │ │ │ ├── pieex8.php │ │ │ ├── pieex9.php │ │ │ ├── pielabelsex1.php │ │ │ ├── pielabelsex2.php │ │ │ ├── pielabelsex3.php │ │ │ ├── pielabelsex4.php │ │ │ ├── polarex0-180.php │ │ │ ├── polarex0.php │ │ │ ├── polarex1.php │ │ │ ├── polarex10.php │ │ │ ├── polarex2.php │ │ │ ├── polarex3-lin.php │ │ │ ├── polarex3.php │ │ │ ├── polarex4.php │ │ │ ├── polarex5.php │ │ │ ├── polarex6.php │ │ │ ├── polarex7-1.php │ │ │ ├── polarex7-2.php │ │ │ ├── polarex7.php │ │ │ ├── polarex8.php │ │ │ ├── polarex9.php │ │ │ ├── pushpinex1.php │ │ │ ├── pushpinex2.php │ │ │ ├── radarex1.php │ │ │ ├── radarex2.php │ │ │ ├── radarex3.php │ │ │ ├── radarex4.php │ │ │ ├── radarex5.php │ │ │ ├── radarex6.1.php │ │ │ ├── radarex6.php │ │ │ ├── radarex7.php │ │ │ ├── radarex8.1.php │ │ │ ├── radarex8.php │ │ │ ├── radarex9.php │ │ │ ├── radarlogex1.php │ │ │ ├── radarlogex2.php │ │ │ ├── radarmarkex1.php │ │ │ ├── rotateex1.php │ │ │ ├── rotex0.php │ │ │ ├── rotex1.php │ │ │ ├── rotex2.php │ │ │ ├── rotex3.php │ │ │ ├── rotex4.php │ │ │ ├── rotex5.php │ │ │ ├── saab_95.jpg │ │ │ ├── scatter_csimex1.php │ │ │ ├── scatterex1.php │ │ │ ├── scatterex2.php │ │ │ ├── scatterlinkex1.php │ │ │ ├── scatterlinkex2.php │ │ │ ├── scatterlinkex3.php │ │ │ ├── scatterlinkex4.php │ │ │ ├── scatterrotex1.php │ │ │ ├── show-example.php │ │ │ ├── show-image.php │ │ │ ├── show-source.php │ │ │ ├── smallstaticbandsex1.php │ │ │ ├── smallstaticbandsex10.php │ │ │ ├── smallstaticbandsex11.php │ │ │ ├── smallstaticbandsex2.php │ │ │ ├── smallstaticbandsex3.php │ │ │ ├── smallstaticbandsex4.php │ │ │ ├── smallstaticbandsex5.php │ │ │ ├── smallstaticbandsex6.php │ │ │ ├── smallstaticbandsex7.php │ │ │ ├── smallstaticbandsex8.php │ │ │ ├── smallstaticbandsex9.php │ │ │ ├── splineex1.php │ │ │ ├── staticbandbarex1.php │ │ │ ├── staticbandbarex2.php │ │ │ ├── staticbandbarex3.php │ │ │ ├── staticbandbarex4.php │ │ │ ├── staticbandbarex5.php │ │ │ ├── staticbandbarex6.php │ │ │ ├── staticbandbarex7.php │ │ │ ├── staticlinebarex1.php │ │ │ ├── stockex1.php │ │ │ ├── stockex2.php │ │ │ ├── stship.jpg │ │ │ ├── tabtitleex1.php │ │ │ ├── testsuit.php │ │ │ ├── text-example1.php │ │ │ ├── text-example2.php │ │ │ ├── textalignex1.php │ │ │ ├── tiger_bkg.gif │ │ │ ├── tiger_bkg.jpg │ │ │ ├── tiger_bkg.png │ │ │ ├── timestampex01.php │ │ │ ├── titlecsimex01.php │ │ │ ├── topxaxisex1.php │ │ │ └── worldmap1.jpg │ │ ├── flags.dat │ │ ├── flags_thumb100x100.dat │ │ ├── flags_thumb35x35.dat │ │ ├── flags_thumb60x60.dat │ │ ├── imgdata_balls.inc │ │ ├── imgdata_bevels.inc │ │ ├── imgdata_diamonds.inc │ │ ├── imgdata_pushpins.inc │ │ ├── imgdata_squares.inc │ │ ├── imgdata_stars.inc │ │ ├── jpg-config.inc.php │ │ ├── jpgraph.php │ │ ├── jpgraph_antispam-digits.php │ │ ├── jpgraph_antispam.php │ │ ├── jpgraph_bar.php │ │ ├── jpgraph_canvas.php │ │ ├── jpgraph_canvtools.php │ │ ├── jpgraph_date.php │ │ ├── jpgraph_error.php │ │ ├── jpgraph_flags.php │ │ ├── jpgraph_gantt.php │ │ ├── jpgraph_gb2312.php │ │ ├── jpgraph_gradient.php │ │ ├── jpgraph_iconplot.php │ │ ├── jpgraph_imgtrans.php │ │ ├── jpgraph_line.php │ │ ├── jpgraph_log.php │ │ ├── jpgraph_mgraph.php │ │ ├── jpgraph_pie.php │ │ ├── jpgraph_pie3d.php │ │ ├── jpgraph_plotband.php │ │ ├── jpgraph_plotmark.inc.php │ │ ├── jpgraph_polar.php │ │ ├── jpgraph_radar.php │ │ ├── jpgraph_regstat.php │ │ ├── jpgraph_scatter.php │ │ ├── jpgraph_stock.php │ │ ├── jpgraph_utils.inc.php │ │ └── lang │ │ │ ├── de.inc.php │ │ │ ├── en.inc.php │ │ │ └── prod.inc.php │ └── readme.txt ├── sql │ ├── sql_injector.php │ └── tables.sql ├── system.php ├── tags.inc ├── test_cc_regex.php └── tests.php ├── cronjob ├── valgrind.supp └── www ├── .htaccess ├── compile_results.php ├── config.php ├── expected_tests.php ├── favicon.ico ├── graph.php ├── images ├── box-0.gif ├── box-1.gif ├── caret-t.gif ├── caret-u.gif ├── checkerboard.gif ├── php.gif └── spacer.gif ├── index.php ├── lcov.php ├── params.php ├── site.api.php ├── skip.php ├── stats.php ├── style.css ├── system.php ├── template.php ├── tested_functions.php ├── tests.php ├── valgrind.php └── viewer.php /clang-checker/README: -------------------------------------------------------------------------------- 1 | README 2 | ====== 3 | 4 | This directory contains a patch for LLVM clang's static analyzer to add 5 | support for PHP/Zend's API. 6 | It was mostly developed by Arnaud Le Blanc and it's available under clang's 7 | license (University of Illinois/NCSA Open Source License). 8 | 9 | 10 | Installation 11 | ============ 12 | - Compile LLVM + Clang from SVN (instruction in their website) 13 | - patch Clang's sources with: 14 | 'cd /path/to/llvm/tools/clang && patch -po < patch.txt' 15 | - link the tests dir to /path/to/llvm/tools/clang/tests/PHP 16 | - make + make test or make report 17 | -------------------------------------------------------------------------------- /clang-checker/TODO: -------------------------------------------------------------------------------- 1 | TODO 2 | ==== 3 | - cleanup remaining FIXMEs in the code 4 | - replace usage of std::map with LLVM's data structures 5 | - fix currently XFAILed tests 6 | - write more tests 7 | - add support for zend_get_parameters_ex() 8 | - check the args of our printf-style functions: zend_throw_exception_ex, zend_error, 9 | zend_printf, php_printf, php_error_docref*, spprintf, ... 10 | - check if the printf-style functions have a constant format arg (e.g. #46887) 11 | - check if zend_restore_error_handling() is called after zend_replace_error_handling() 12 | -------------------------------------------------------------------------------- /clang-checker/tests/num_args.c: -------------------------------------------------------------------------------- 1 | // RUN: clang -checker-simple -verify %s 2 | // XFAIL: ZEND_NUM_ARGS not checked yet 3 | 4 | int zend_parse_parameters(int num_args, const char *type_spec, ...); 5 | #define ZEND_NUM_ARGS() ht 6 | 7 | void bar(char c); 8 | 9 | void foo(int ht) 10 | { 11 | char *str; 12 | int l; 13 | 14 | zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &str, &l); 15 | 16 | if (ZEND_NUM_ARGS() > 0) { 17 | bar(*str); // no-warning 18 | } 19 | 20 | bar(*str); // expected-warning {{Dereference of undefined value}} 21 | } 22 | -------------------------------------------------------------------------------- /clang-checker/tests/storage.c: -------------------------------------------------------------------------------- 1 | // RUN: clang -checker-simple -verify %s 2 | // XFAIL: storage is not verified 3 | 4 | int zend_parse_parameters(int num_args, const char *type_spec, ...); 5 | 6 | void foo() 7 | { 8 | char **str = NULL; 9 | int *len; 10 | 11 | long x; 12 | long *num; 13 | 14 | num = &x; 15 | 16 | zend_parse_parameters(0, "sl", 17 | str, // expected-warning {{Pointer in NULL}} 18 | len, // expected-warning {{Pass-by-value argument in function is undefined}} 19 | num // no-warning 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /clang-checker/tests/uninit-strs.c: -------------------------------------------------------------------------------- 1 | // RUN: clang -checker-simple -verify %s 2 | // XFAIL: string not correlated with length 3 | 4 | int zend_parse_parameters(int num_args, const char *type_spec, ...); 5 | #define SUCCESS 0 6 | 7 | void bar(int x); 8 | 9 | void foo() 10 | { 11 | char *str = NULL; 12 | int len; 13 | 14 | if (zend_parse_parameters(0, "|s", &str, &len) != SUCCESS) { 15 | return; 16 | } 17 | 18 | bar(len); // expected-warning {{Pass-by-value argument in function is undefined}} 19 | 20 | // if str is inited, then len is too 21 | if (str) { 22 | bar(len); // no-warning 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /clang-checker/tests/uninit.c: -------------------------------------------------------------------------------- 1 | // RUN: clang -checker-simple -verify %s 2 | 3 | int zend_parse_parameters(int num_args, const char *type_spec, ...); 4 | #define SUCCESS 0 5 | 6 | void bar(int x); 7 | 8 | void foo() 9 | { 10 | long a, b; 11 | 12 | if (zend_parse_parameters(1, "l|l", &a, &b) != SUCCESS) { 13 | return; 14 | } 15 | 16 | bar(a); // no-warning 17 | bar(b); // expected-warning {{Pass-by-value argument in function is undefined}} 18 | } 19 | -------------------------------------------------------------------------------- /clang-checker/tests/uninit2.c: -------------------------------------------------------------------------------- 1 | // RUN: clang -checker-simple -verify %s 2 | // XFAIL: return value not checked yet 3 | 4 | int zend_parse_parameters(int num_args, const char *type_spec, ...); 5 | #define SUCCESS 0 6 | 7 | void bar(int x); 8 | 9 | void foo2() 10 | { 11 | long a, b; 12 | 13 | zend_parse_parameters(1, "l|l", &a, &b); 14 | 15 | bar(a); // expected-warning {{Pass-by-value argument in function is undefined}} 16 | bar(b); // expected-warning {{Pass-by-value argument in function is undefined}} 17 | } 18 | -------------------------------------------------------------------------------- /cron/config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # where the files (sources, etc..) will be stored 4 | PHPROOT=/tmp/gcov 5 | 6 | # the output dir (aka the place of the php-gcov-web checkout) 7 | OUTROOT=/www/gcov 8 | 9 | # set this to null if you don't want to run valgrind tests 10 | VALGRIND=1 11 | 12 | # use this to set specific valgrind options, like a suppressions file 13 | #export VALGRIND_OPTS="--suppressions=/tmp/gcov/valgrind.supp" 14 | -------------------------------------------------------------------------------- /cron/lcov_epilog.inc: -------------------------------------------------------------------------------- 1 | Generated at ' . date('r', $time) . ' (' . time_diff($time, true) . ' ago)

'; 5 | 6 | api_showfooter($appvars); 7 | ?> 8 | -------------------------------------------------------------------------------- /cron/lcov_prolog.inc: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/accbarex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | 13 | $graph->SetShadow(); 14 | $graph->img->SetMargin(40,30,20,40); 15 | 16 | // Create the bar plots 17 | $b1plot = new BarPlot($data1y); 18 | $b1plot->SetFillColor("orange"); 19 | $b1plot->value->Show(); 20 | $b2plot = new BarPlot($data2y); 21 | $b2plot->SetFillColor("blue"); 22 | $b2plot->value->Show(); 23 | 24 | // Create the grouped bar plot 25 | $gbplot = new AccBarPlot(array($b1plot,$b2plot)); 26 | 27 | // ...and add it to the graPH 28 | $graph->Add($gbplot); 29 | 30 | $graph->title->Set("Accumulated bar plots"); 31 | $graph->xaxis->title->Set("X-title"); 32 | $graph->yaxis->title->Set("Y-title"); 33 | 34 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | 38 | // Display the graph 39 | $graph->Stroke(); 40 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/antispamex01.php: -------------------------------------------------------------------------------- 1 | Rand(5); 11 | 12 | // Stroke random cahllenge 13 | if( $spam->Stroke() === false ) { 14 | die('Illegal or no data to plot'); 15 | } 16 | 17 | ?> 18 | 19 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/barformatcallbackex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | 18 | // Create a bar plots 19 | $bar1 = new BarPlot($data); 20 | 21 | // Setup the callback function 22 | $bar1->value->SetFormatCallback("cbFmtPercentage"); 23 | $bar1->value->Show(); 24 | 25 | // Add the plot to the graph 26 | $graph->Add($bar1); 27 | 28 | // .. and send the graph back to the browser 29 | $graph->Stroke(); 30 | ?> 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_MIDVER"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_MIDVER); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_MIDHOR"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_MIDHOR); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_HOR"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_HOR); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_VER"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_VER); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex5.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_WIDE_MIDVER"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_WIDE_MIDVER); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex6.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_WIDE_MIDHOR"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_WIDE_MIDHOR); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex7.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_CENTER"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient("navy","lightsteelblue",GRAD_CENTER); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bargradsmallex8.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->img->SetMargin(25,15,25,25); 13 | 14 | $graph->title->Set('"GRAD_RAISED_PANEL"'); 15 | $graph->title->SetColor('darkred'); 16 | 17 | // Setup font for axis 18 | $graph->xaxis->SetFont(FF_FONT1); 19 | $graph->yaxis->SetFont(FF_FONT1); 20 | 21 | // Create the bar pot 22 | $bplot = new BarPlot($datay); 23 | $bplot->SetWidth(0.6); 24 | 25 | // Setup color for gradient fill style 26 | $bplot->SetFillGradient('navy','orange',GRAD_RAISED_PANEL); 27 | 28 | // Set color for the frame of each bar 29 | $bplot->SetColor("navy"); 30 | $graph->Add($bplot); 31 | 32 | // Finally send the graph to the browser 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/barimgex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | $graph->title->Set('Images on top of bars'); 12 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,13); 13 | 14 | $graph->SetTitleBackground('lightblue:1.1',TITLEBKG_STYLE1,TITLEBKG_FRAME_BEVEL); 15 | 16 | $bplot = new BarPlot($datay); 17 | $bplot->SetFillColor("orange"); 18 | $bplot->SetWidth(0.5); 19 | 20 | $lplot = new LinePlot($datay); 21 | $lplot->SetColor('white@1'); 22 | $lplot->SetBarCenter(); 23 | $lplot->mark->SetType(MARK_IMG_LBALL,'red'); 24 | 25 | $graph->Add($bplot); 26 | $graph->Add($lplot); 27 | 28 | $graph->Stroke(); 29 | ?> 30 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/barline_csimex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 14 | $graph->img->SetMargin(40,20,30,40); 15 | $graph->title->Set("CSIM example with bar and line"); 16 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 17 | 18 | // Setup axis titles 19 | $graph->xaxis->title->Set("X-title"); 20 | $graph->yaxis->title->Set("Y-title"); 21 | 22 | // Create the linear plot 23 | $lineplot=new LinePlot($ydata); 24 | $lineplot->mark->SetType(MARK_FILLEDCIRCLE); 25 | $lineplot->mark->SetWidth(5); 26 | $lineplot->mark->SetColor('black'); 27 | $lineplot->mark->SetFillColor('red'); 28 | $lineplot->SetCSIMTargets($targ,$alt); 29 | 30 | // Create line plot 31 | $barplot=new barPlot($ydata2); 32 | $barplot->SetCSIMTargets($targ,$alt); 33 | 34 | // Add the plots to the graph 35 | $graph->Add($lineplot); 36 | $graph->Add($barplot); 37 | 38 | $graph->StrokeCSIM('barline_csimex1.php'); 39 | 40 | ?> 41 | 42 | 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/barpatternex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 13 | 14 | $graph->SetMarginColor('navy:1.9'); 15 | $graph->SetBox(); 16 | 17 | $graph->title->Set('Bar Pattern'); 18 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,20); 19 | 20 | $graph->SetTitleBackground('lightblue:1.3',TITLEBKG_STYLE2,TITLEBKG_FRAME_BEVEL); 21 | $graph->SetTitleBackgroundFillStyle(TITLEBKG_FILLSTYLE_HSTRIPED,'lightblue','blue'); 22 | 23 | // Create a bar pot 24 | $bplot = new BarPlot($datay); 25 | $bplot->SetFillColor('darkorange'); 26 | $bplot->SetWidth(0.6); 27 | 28 | $bplot->SetPattern(PATTERN_CROSS1,'navy'); 29 | 30 | $graph->Add($bplot); 31 | 32 | $graph->Stroke(); 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Use a "text" X-scale 13 | $graph->SetScale("textlin"); 14 | 15 | // Set title and subtitle 16 | $graph->title->Set("Elementary barplot with a text scale"); 17 | 18 | // Use built in font 19 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 20 | 21 | // Create the bar plot 22 | $b1 = new BarPlot($databary); 23 | $b1->SetLegend("Temperature"); 24 | //$b1->SetAbsWidth(6); 25 | //$b1->SetShadow(); 26 | 27 | // The order the plots are added determines who's ontop 28 | $graph->Add($b1); 29 | 30 | // Finally output the image 31 | $graph->Stroke(); 32 | 33 | ?> 34 | 35 | 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex2.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 8 | 9 | // New graph with a drop shadow 10 | $graph = new Graph(300,200,'auto'); 11 | $graph->SetShadow(); 12 | 13 | // Use a "text" X-scale 14 | $graph->SetScale("textlin"); 15 | 16 | // Specify X-labels 17 | $graph->xaxis->SetTickLabels($months); 18 | 19 | // Set title and subtitle 20 | $graph->title->Set("Textscale with specified labels"); 21 | 22 | // Use built in font 23 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 24 | 25 | // Create the bar plot 26 | $b1 = new BarPlot($databary); 27 | $b1->SetLegend("Temperature"); 28 | 29 | //$b1->SetAbsWidth(6); 30 | //$b1->SetShadow(); 31 | 32 | // The order the plots are added determines who's ontop 33 | $graph->Add($b1); 34 | 35 | // Finally output the image 36 | $graph->Stroke(); 37 | 38 | ?> 39 | 40 | 41 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex3.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 7 | 8 | srand ((double) microtime() * 1000000); 9 | for( $i=0; $i<25; ++$i) { 10 | $databary[]=rand(1,50); 11 | $databarx[]=$months[$i%12]; 12 | } 13 | 14 | // New graph with a drop shadow 15 | $graph = new Graph(300,200,'auto'); 16 | $graph->SetShadow(); 17 | 18 | // Use a "text" X-scale 19 | $graph->SetScale("textlin"); 20 | 21 | // Specify X-labels 22 | $graph->xaxis->SetTickLabels($databarx); 23 | 24 | // Set title and subtitle 25 | $graph->title->Set("Bar tutorial example 3"); 26 | 27 | // Use built in font 28 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 29 | 30 | // Create the bar plot 31 | $b1 = new BarPlot($databary); 32 | $b1->SetLegend("Temperature"); 33 | //$b1->SetAbsWidth(6); 34 | //$b1->SetShadow(); 35 | 36 | // The order the plots are added determines who's ontop 37 | $graph->Add($b1); 38 | 39 | // Finally output the image 40 | $graph->Stroke(); 41 | 42 | ?> 43 | 44 | 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex4.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 7 | 8 | srand ((double) microtime() * 1000000); 9 | for( $i=0; $i<25; ++$i) { 10 | $databary[]=rand(1,50); 11 | $databarx[]=$months[$i%12]; 12 | } 13 | 14 | // New graph with a drop shadow 15 | $graph = new Graph(300,200,'auto'); 16 | $graph->SetShadow(); 17 | 18 | // Use a "text" X-scale 19 | $graph->SetScale("textlin"); 20 | 21 | // Specify X-labels 22 | //$databarx = array('tXi','','','xxx','','','iXii','','','OOO','','','tOO'); 23 | $graph->xaxis->SetFont(FF_FONT1,FS_NORMAL); 24 | $graph->xaxis->SetTickLabels($databarx); 25 | $graph->xaxis->SetTextLabelInterval(3); 26 | 27 | // Set title and subtitle 28 | $graph->title->Set("Displaying only every third label"); 29 | 30 | // Use built in font 31 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | // Create the bar plot 34 | $b1 = new BarPlot($databary); 35 | $b1->SetLegend("Temperature"); 36 | //$b1->SetAbsWidth(6); 37 | //$b1->SetShadow(); 38 | 39 | // The order the plots are added determines who's ontop 40 | $graph->Add($b1); 41 | 42 | // Finally output the image 43 | $graph->Stroke(); 44 | 45 | ?> 46 | 47 | 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex5.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 7 | 8 | srand ((double) microtime() * 1000000); 9 | for( $i=0; $i<25; ++$i) { 10 | $databary[]=rand(1,50); 11 | $databarx[]=$months[$i%12]; 12 | } 13 | 14 | // New graph with a drop shadow 15 | $graph = new Graph(300,200,'auto'); 16 | $graph->SetShadow(); 17 | 18 | // Use a "text" X-scale 19 | $graph->SetScale("textlin"); 20 | 21 | // Specify X-labels 22 | $graph->xaxis->SetTickLabels($databarx); 23 | $graph->xaxis->SetTextLabelInterval(1); 24 | $graph->xaxis->SetTextTickInterval(3); 25 | 26 | // Set title and subtitle 27 | $graph->title->Set("Bar tutorial example 5"); 28 | 29 | // Use built in font 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | 32 | // Create the bar plot 33 | $b1 = new BarPlot($databary); 34 | $b1->SetLegend("Temperature"); 35 | $b1->SetWidth(0.4); 36 | 37 | // The order the plots are added determines who's ontop 38 | $graph->Add($b1); 39 | 40 | // Finally output the image 41 | $graph->Stroke(); 42 | 43 | ?> 44 | 45 | 46 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/bartutex6.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 7 | srand ((double) microtime() * 1000000); 8 | for( $i=0; $i<25; ++$i) { 9 | $databary[]=rand(1,50); 10 | $databarx[]=$months[$i%12]; 11 | } 12 | 13 | // New graph with a drop shadow 14 | $graph = new Graph(300,200,'auto'); 15 | $graph->SetShadow(); 16 | 17 | // Use a "text" X-scale 18 | $graph->SetScale("textlin"); 19 | 20 | // Specify X-labels 21 | $graph->xaxis->SetTickLabels($databarx); 22 | $graph->xaxis->SetTextLabelInterval(3); 23 | 24 | // Hide the tick marks 25 | $graph->xaxis->HideTicks(); 26 | 27 | // Set title and subtitle 28 | $graph->title->Set("Bar tutorial example 6"); 29 | 30 | // Use built in font 31 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | // Create the bar plot 34 | $b1 = new BarPlot($databary); 35 | $b1->SetLegend("Temperature"); 36 | $b1->SetWidth(0.4); 37 | 38 | 39 | // The order the plots are added determines who's ontop 40 | $graph->Add($b1); 41 | 42 | // Finally output the image 43 | $graph->Stroke(); 44 | 45 | ?> 46 | 47 | 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/blueblack400x300grad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/blueblack400x300grad.png -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/boxstockcsimex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | $graph->SetMarginColor('lightblue'); 18 | $graph->title->Set('Box Stock chart example'); 19 | 20 | // Create a new stock plot 21 | $p1 = new BoxPlot($datay); 22 | 23 | // Setup URL target for image map 24 | $p1->SetCSIMTargets(array('#1','#2','#3','#4','#5')); 25 | 26 | // Width of the bars (in pixels) 27 | $p1->SetWidth(9); 28 | 29 | //$p1->SetCenter(); 30 | // Uncomment the following line to hide the horizontal end lines 31 | //$p1->HideEndLines(); 32 | 33 | // Add the plot to the graph and send it back to the browser 34 | $graph->Add($p1); 35 | $graph->StrokeCSIM(basename(__FILE__)); 36 | 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/boxstockex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | $graph->SetMarginColor('lightblue'); 18 | $graph->title->Set('Box Stock chart example'); 19 | 20 | // Create a new stock plot 21 | $p1 = new BoxPlot($datay); 22 | 23 | // Width of the bars (in pixels) 24 | $p1->SetWidth(9); 25 | 26 | // Uncomment the following line to hide the horizontal end lines 27 | //$p1->HideEndLines(); 28 | 29 | // Add the plot to the graph and send it back to the browser 30 | $graph->Add($p1); 31 | $graph->Stroke(); 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/boxstockex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | $graph->SetMarginColor('lightblue'); 18 | $graph->title->Set('Box Stock chart example'); 19 | $graph->subtitle->Set('(Indented X-axis)'); 20 | 21 | // Create a new stock plot 22 | $p1 = new BoxPlot($datay); 23 | 24 | // Width of the bars (in pixels) 25 | $p1->SetWidth(9); 26 | 27 | // Indent bars so they dont start and end at the edge of the 28 | // plot area 29 | $p1->SetCenter(); 30 | 31 | // Uncomment the following line to hide the horizontal end lines 32 | //$p1->HideEndLines(); 33 | 34 | // Add the plot to the graph and send it back to the browser 35 | $graph->Add($p1); 36 | $graph->Stroke(); 37 | 38 | ?> 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/canvasbezierex1.php: -------------------------------------------------------------------------------- 1 | title->Set('Bezier line with control points'); 13 | 14 | // Setup control point for bezier 15 | $p = array(3,6, 16 | 6,9, 17 | 5,3, 18 | 7,4); 19 | 20 | // Visualize control points 21 | $shape->SetColor('blue'); 22 | $shape->Line($p[0],$p[1],$p[2],$p[3]); 23 | $shape->FilledCircle($p[2],$p[3],-6); 24 | 25 | $shape->SetColor('red'); 26 | $shape->Line($p[4],$p[5],$p[6],$p[7]); 27 | $shape->FilledCircle($p[4],$p[5],-6); 28 | 29 | // Draw bezier 30 | $shape->SetColor('black'); 31 | $shape->Bezier($p); 32 | 33 | // Frame it with a square 34 | $shape->SetColor('navy'); 35 | $shape->Rectangle(0.5,2,9.5,9.5); 36 | 37 | // ... and stroke it 38 | $g->Stroke(); 39 | ?> 40 | 41 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/canvasex01.php: -------------------------------------------------------------------------------- 1 | SetMargin(5,11,6,11); 9 | $g->SetShadow(); 10 | $g->SetMarginColor("teal"); 11 | 12 | // We need to stroke the plotarea and margin before we add the 13 | // text since we otherwise would overwrite the text. 14 | $g->InitFrame(); 15 | 16 | // Draw a text box in the middle 17 | $txt="This\nis\na TEXT!!!"; 18 | $t = new Text($txt,200,10); 19 | $t->SetFont(FF_ARIAL,FS_BOLD,40); 20 | 21 | // How should the text box interpret the coordinates? 22 | $t->Align('center','top'); 23 | 24 | // How should the paragraph be aligned? 25 | $t->ParagraphAlign('center'); 26 | 27 | // Add a box around the text, white fill, black border and gray shadow 28 | $t->SetBox("white","black","gray"); 29 | 30 | // Stroke the text 31 | $t->Stroke($g->img); 32 | 33 | // Stroke the graph 34 | $g->Stroke(); 35 | 36 | ?> 37 | 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/canvasex02.php: -------------------------------------------------------------------------------- 1 | SetMargin(5,11,6,11); 9 | $g->SetShadow(); 10 | $g->SetMarginColor("teal"); 11 | 12 | // We need to stroke the plotarea and margin before we add the 13 | // text since we otherwise would overwrite the text. 14 | $g->InitFrame(); 15 | 16 | // Add a black line 17 | $g->img->SetColor('black'); 18 | $g->img->Line(0,0,100,100); 19 | 20 | // .. and a circle (x,y,diameter) 21 | $g->img->Circle(100,100,50); 22 | 23 | // .. and a filled circle (x,y,diameter) 24 | $g->img->SetColor('red'); 25 | $g->img->FilledCircle(200,100,50); 26 | 27 | // .. add a rectangle 28 | $g->img->SetColor('green'); 29 | $g->img->FilledRectangle(10,10,50,50); 30 | 31 | // .. add a filled rounded rectangle 32 | $g->img->SetColor('green'); 33 | $g->img->FilledRoundedRectangle(300,30,350,80,10); 34 | // .. with a darker border 35 | $g->img->SetColor('darkgreen'); 36 | $g->img->RoundedRectangle(300,30,350,80,10); 37 | 38 | // Stroke the graph 39 | $g->Stroke(); 40 | 41 | ?> 42 | 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/canvasex06.php: -------------------------------------------------------------------------------- 1 | SetMargin(5,11,6,11); 14 | $g->SetShadow(); 15 | $g->SetMarginColor("teal"); 16 | 17 | // We need to stroke the plotarea and margin before we add the 18 | // text since we otherwise would overwrite the text. 19 | $g->InitFrame(); 20 | 21 | // Create a new scale 22 | $scale = new CanvasScale($g); 23 | $scale->Set(0,$xmax,0,$ymax); 24 | 25 | // The shape class is wrapper around the Imgae class which translates 26 | // the coordinates for us 27 | $shape = new Shape($g,$scale); 28 | $shape->SetColor('black'); 29 | 30 | $shape->IndentedRectangle(1,2,15,15,8,8,CORNER_TOPLEFT,'khaki'); 31 | 32 | $shape->IndentedRectangle(1,20,15,15,8,8,CORNER_BOTTOMLEFT,'khaki'); 33 | 34 | $shape->IndentedRectangle(20,2,15,15,8,8,CORNER_TOPRIGHT,'khaki'); 35 | 36 | $shape->IndentedRectangle(20,20,15,15,8,8,CORNER_BOTTOMRIGHT,'khaki'); 37 | 38 | // Stroke the graph 39 | $g->Stroke(); 40 | 41 | ?> 42 | 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/centeredlineex01.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 11 | $graph->img->SetAntiAliasing(); 12 | $graph->SetScale("textlin"); 13 | $graph->SetShadow(); 14 | $graph->title->Set("Example of line centered plot"); 15 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 16 | 17 | 18 | // Use 20% "grace" to get slightly larger scale then min/max of 19 | // data 20 | $graph->yscale->SetGrace(20); 21 | 22 | 23 | $p1 = new LinePlot($datay); 24 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 25 | $p1->mark->SetFillColor("red"); 26 | $p1->mark->SetWidth(4); 27 | $p1->SetColor("blue"); 28 | $p1->SetCenter(); 29 | $graph->Add($p1); 30 | 31 | $graph->Stroke(); 32 | 33 | ?> 34 | 35 | 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/centeredlineex02.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 11 | $graph->img->SetAntiAliasing(); 12 | $graph->SetScale("textlin"); 13 | $graph->SetShadow(); 14 | $graph->title->Set("Example of filled line centered plot"); 15 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 16 | 17 | $p1 = new LinePlot($datay); 18 | $p1->SetFillColor("green"); 19 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 20 | $p1->mark->SetFillColor("red"); 21 | $p1->mark->SetWidth(4); 22 | $p1->SetColor("blue"); 23 | $p1->SetCenter(); 24 | $graph->Add($p1); 25 | 26 | $graph->Stroke(); 27 | 28 | ?> 29 | 30 | 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/centeredlineex03.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,80); 9 | $graph->img->SetAntiAliasing(); 10 | $graph->SetScale("textlin"); 11 | $graph->SetShadow(); 12 | $graph->title->Set("Example slanted X-labels"); 13 | $graph->title->SetFont(FF_VERDANA,FS_NORMAL,14); 14 | 15 | $graph->xaxis->SetFont(FF_ARIAL,FS_NORMAL,11); 16 | $graph->xaxis->SetTickLabels($labels); 17 | $graph->xaxis->SetLabelAngle(45); 18 | 19 | $p1 = new LinePlot($datay); 20 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 21 | $p1->mark->SetFillColor("red"); 22 | $p1->mark->SetWidth(4); 23 | $p1->SetColor("blue"); 24 | $p1->SetCenter(); 25 | $graph->Add($p1); 26 | 27 | $graph->Stroke(); 28 | 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/centerlinebarex1.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,80,40,40); 12 | $graph->SetScale("textlin"); 13 | $graph->SetShadow(); 14 | 15 | $graph->title->Set('Center the line points in bars'); 16 | 17 | $line = new LinePlot($ydata); 18 | $line->SetBarCenter(); 19 | $line->SetWeight(2); 20 | 21 | $bar = new BarPlot($ydata); 22 | $bar2 = new BarPlot($ydata); 23 | $bar2->SetFillColor("red"); 24 | 25 | $gbar = new GroupbarPlot(array($bar,$bar2)); 26 | 27 | $graph->Add($gbar); 28 | $graph->Add($line); 29 | 30 | // Output line 31 | $graph->Stroke(); 32 | 33 | ?> 34 | 35 | 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/dateaxisex2.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,30,130); 25 | 26 | // Fix the Y-scale to go between [0,100] and use date for the x-axis 27 | $graph->SetScale('datlin',0,100); 28 | $graph->title->Set("Example on Date scale"); 29 | 30 | // Set the angle for the labels to 90 degrees 31 | $graph->xaxis->SetLabelAngle(90); 32 | 33 | $line = new LinePlot($data,$xdata); 34 | $line->SetLegend('Year 2005'); 35 | $line->SetFillColor('lightblue@0.5'); 36 | $graph->Add($line); 37 | $graph->Stroke(); 38 | ?> 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/dupyaxisex1.php: -------------------------------------------------------------------------------- 1 | E(-M_PI,M_PI,25); 8 | 9 | $graph = new Graph(300,200,"auto"); 10 | $graph->SetScale("linlin"); 11 | $graph->SetMargin(50,50,20,30); 12 | $graph->SetFrame(false); 13 | $graph->SetBox(true,'black',2); 14 | $graph->SetMarginColor('white'); 15 | $graph->SetColor('lightyellow'); 16 | 17 | $graph->title->Set('Duplicating Y-axis'); 18 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 19 | 20 | $graph->SetAxisStyle(AXSTYLE_YBOXIN); 21 | $graph->xgrid->Show(); 22 | 23 | $lp1 = new LinePlot($ydata,$xdata); 24 | $lp1->SetColor("blue"); 25 | $lp1->SetWeight(2); 26 | $graph->Add($lp1); 27 | 28 | $graph->Stroke(); 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example0.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | // Create the linear plot 13 | $lineplot=new LinePlot($ydata); 14 | $lineplot->SetColor("blue"); 15 | 16 | // Add the plot to the graph 17 | $graph->Add($lineplot); 18 | 19 | // Display the graph 20 | $graph->Stroke(); 21 | ?> 22 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example1.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->img->SetMargin(30,90,40,50); 11 | $graph->xaxis->SetFont(FF_FONT1,FS_BOLD); 12 | $graph->title->Set("Example 1.1 same y-values"); 13 | 14 | // Create the linear plot 15 | $lineplot=new LinePlot($ydata); 16 | $lineplot->SetLegend("Test 1"); 17 | $lineplot->SetColor("blue"); 18 | $lineplot->SetWeight(5); 19 | 20 | // Add the plot to the graph 21 | $graph->Add($lineplot); 22 | 23 | // Display the graph 24 | $graph->Stroke(); 25 | ?> 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example1.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->img->SetMargin(30,90,40,50); 11 | $graph->xaxis->SetFont(FF_FONT1,FS_BOLD); 12 | $graph->title->Set("Dashed lineplot"); 13 | 14 | // Create the linear plot 15 | $lineplot=new LinePlot($ydata); 16 | $lineplot->SetLegend("Test 1"); 17 | $lineplot->SetColor("blue"); 18 | 19 | // Style can also be specified as SetStyle([1|2|3|4]) or 20 | // SetStyle("solid"|"dotted"|"dashed"|"lobgdashed") 21 | $lineplot->SetStyle("dashed"); 22 | 23 | 24 | // Add the plot to the graph 25 | $graph->Add($lineplot); 26 | 27 | // Display the graph 28 | $graph->Stroke(); 29 | ?> 30 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->img->SetMargin(50,90,40,50); 11 | $graph->xaxis->SetFont(FF_FONT1,FS_BOLD); 12 | $graph->title->Set("Examples for graph"); 13 | 14 | // Create the linear plot 15 | $lineplot=new LinePlot($ydata); 16 | $lineplot->SetLegend("Test 1"); 17 | $lineplot->SetColor("blue"); 18 | 19 | 20 | // Add the plot to the graph 21 | $graph->Add($lineplot); 22 | 23 | // Display the graph 24 | $graph->Stroke(); 25 | ?> 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example11.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 13 | 14 | // Create the linear plot 15 | $lineplot=new LinePlot($ydata); 16 | 17 | $lineplot2=new LinePlot($ydata2); 18 | 19 | // Add the plot to the graph 20 | $graph->Add($lineplot); 21 | $graph->Add($lineplot2); 22 | 23 | $graph->img->SetMargin(40,20,20,40); 24 | $graph->title->Set("Timing a graph"); 25 | $graph->xaxis->title->Set("X-title"); 26 | $graph->yaxis->title->Set("Y-title"); 27 | 28 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 29 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | 32 | $lineplot->SetColor("blue"); 33 | $lineplot->SetWeight(2); 34 | 35 | $lineplot2->SetColor("orange"); 36 | $lineplot2->SetWeight(2); 37 | 38 | $graph->yaxis->SetColor("red"); 39 | $graph->yaxis->SetWeight(2); 40 | $graph->SetShadow(); 41 | 42 | // Display the graph 43 | $graph->Stroke(); 44 | ?> 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example13.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | $graph->img->SetMargin(40,30,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the error plot 16 | $errplot=new ErrorPlot($errdatay); 17 | $errplot->SetColor("red"); 18 | $errplot->SetWeight(2); 19 | 20 | // Add the plot to the graph 21 | $graph->Add($errplot); 22 | 23 | $graph->title->Set("Simple error plot"); 24 | $graph->xaxis->title->Set("X-title"); 25 | $graph->yaxis->title->Set("Y-title"); 26 | 27 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 30 | 31 | $datax = $gDateLocale->GetShortMonth(); 32 | $graph->xaxis->SetTickLabels($datax); 33 | 34 | // Display the graph 35 | $graph->Stroke(); 36 | ?> 37 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example14.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | $graph->img->SetMargin(40,30,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the error plot 16 | $errplot=new ErrorPlot($errdatay); 17 | $errplot->SetColor("red"); 18 | $errplot->SetWeight(2); 19 | $errplot->SetCenter(); 20 | 21 | // Add the plot to the graph 22 | $graph->Add($errplot); 23 | 24 | $graph->title->Set("Simple error plot"); 25 | $graph->xaxis->title->Set("X-title"); 26 | $graph->yaxis->title->Set("Y-title"); 27 | 28 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 29 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | 32 | $datax = $gDateLocale->GetShortMonth(); 33 | $graph->xaxis->SetTickLabels($datax); 34 | 35 | // Display the graph 36 | $graph->Stroke(); 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example15.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | $graph->img->SetMargin(40,30,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $errplot=new ErrorLinePlot($errdatay); 17 | $errplot->SetColor("red"); 18 | $errplot->SetWeight(2); 19 | $errplot->SetCenter(); 20 | $errplot->line->SetWeight(2); 21 | $errplot->line->SetColor("blue"); 22 | 23 | // Add the plot to the graph 24 | $graph->Add($errplot); 25 | 26 | $graph->title->Set("Linear error plot"); 27 | $graph->xaxis->title->Set("X-title"); 28 | $graph->yaxis->title->Set("Y-title"); 29 | 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | 34 | $datax = $gDateLocale->GetShortMonth(); 35 | $graph->xaxis->SetTickLabels($datax); 36 | 37 | 38 | // Display the graph 39 | $graph->Stroke(); 40 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example16.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 14 | 15 | $graph->img->SetMargin(40,130,20,40); 16 | $graph->SetShadow(); 17 | 18 | // Create the linear error plot 19 | $l1plot=new LinePlot($l1datay); 20 | $l1plot->SetColor("red"); 21 | $l1plot->SetWeight(2); 22 | $l1plot->SetLegend("Prediction"); 23 | 24 | // Create the bar plot 25 | $l2plot = new LinePlot($l2datay); 26 | $l2plot->SetFillColor("orange"); 27 | $l2plot->SetLegend("Result"); 28 | 29 | // Add the plots to the graph 30 | $graph->Add($l2plot); 31 | $graph->Add($l1plot); 32 | 33 | $graph->title->Set("Mixing line and filled line"); 34 | $graph->xaxis->title->Set("X-title"); 35 | $graph->yaxis->title->Set("Y-title"); 36 | 37 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 38 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 39 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 40 | 41 | //$graph->xaxis->SetTickLabels($datax); 42 | //$graph->xaxis->SetTextTickInterval(2); 43 | 44 | // Display the graph 45 | $graph->Stroke(); 46 | ?> 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example16.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 13 | 14 | $graph->img->SetMargin(40,130,20,40); 15 | $graph->SetShadow(); 16 | 17 | // Create the linear error plot 18 | $l1plot=new LinePlot($l1datay); 19 | $l1plot->SetColor("red"); 20 | $l1plot->SetWeight(2); 21 | $l1plot->SetLegend("Prediction"); 22 | 23 | // Create the bar plot 24 | $bplot = new BarPlot($l2datay); 25 | $bplot->SetFillColor("orange"); 26 | $bplot->SetLegend("Result"); 27 | 28 | // Add the plots to t'he graph 29 | $graph->Add($l1plot); 30 | $graph->Add($bplot); 31 | 32 | 33 | $graph->title->Set("Adding a line plot to a bar graph v1"); 34 | $graph->xaxis->title->Set("X-title"); 35 | $graph->yaxis->title->Set("Y-title"); 36 | 37 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 38 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 39 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 40 | 41 | //$graph->xaxis->SetTickLabels($datax); 42 | //$graph->xaxis->SetTextTickInterval(2); 43 | 44 | // Display the graph 45 | $graph->Stroke(); 46 | ?> 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example16.3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 13 | 14 | $graph->img->SetMargin(40,130,20,40); 15 | $graph->SetShadow(); 16 | 17 | // Create the linear error plot 18 | $l1plot=new LinePlot($l1datay); 19 | $l1plot->SetColor("red"); 20 | $l1plot->SetWeight(2); 21 | $l1plot->SetLegend("Prediction"); 22 | 23 | 24 | // Create the bar plot 25 | $bplot = new BarPlot($l2datay); 26 | $bplot->SetFillColor("orange"); 27 | $bplot->SetLegend("Result"); 28 | 29 | // Add the plots to t'he graph 30 | $graph->Add($bplot); 31 | $graph->Add($l1plot); 32 | 33 | 34 | $graph->title->Set("Adding a line plot to a bar graph v1"); 35 | $graph->xaxis->title->Set("X-title"); 36 | $graph->yaxis->title->Set("Y-title"); 37 | 38 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 39 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 40 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 41 | 42 | //$graph->xaxis->SetTickLabels($datax); 43 | //$graph->xaxis->SetTextTickInterval(2); 44 | 45 | // Display the graph 46 | $graph->Stroke(); 47 | ?> 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example16.4.php: -------------------------------------------------------------------------------- 1 | SetScale("intlin"); 12 | 13 | $graph->img->SetMargin(40,130,20,40); 14 | $graph->SetShadow(); 15 | 16 | // Create the linear error plot 17 | $l1plot=new LinePlot($l1datay); 18 | $l1plot->SetColor("red"); 19 | $l1plot->SetWeight(2); 20 | $l1plot->SetLegend("Prediction"); 21 | 22 | // Create the bar plot 23 | $bplot = new BarPlot($l2datay); 24 | $bplot->SetFillColor("orange"); 25 | $bplot->SetLegend("Result"); 26 | 27 | // Add the plots to t'he graph 28 | $graph->Add($bplot); 29 | $graph->Add($l1plot); 30 | 31 | $graph->title->Set("Adding a line plot to a bar graph v3"); 32 | $graph->xaxis->title->Set("X-title"); 33 | $graph->yaxis->title->Set("Y-title"); 34 | 35 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 38 | 39 | $datax = $gDateLocale->GetShortMonth(); 40 | $graph->xaxis->SetTickLabels($datax); 41 | 42 | // Display the graph 43 | $graph->Stroke(); 44 | ?> 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example16.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | $graph->img->SetMargin(40,30,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $errplot=new ErrorLinePlot($errdatay); 17 | $errplot->SetColor("red"); 18 | $errplot->SetWeight(2); 19 | $errplot->SetCenter(); 20 | $errplot->line->SetWeight(2); 21 | $errplot->line->SetColor("blue"); 22 | 23 | // Setup the legends 24 | $errplot->SetLegend("Min/Max"); 25 | $errplot->line->SetLegend("Average"); 26 | 27 | // Add the plot to the graph 28 | $graph->Add($errplot); 29 | 30 | $graph->title->Set("Linear error plot"); 31 | $graph->xaxis->title->Set("X-title"); 32 | $graph->yaxis->title->Set("Y-title"); 33 | 34 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | 38 | $datax = $gDateLocale->GetShortMonth(); 39 | $graph->xaxis->SetTickLabels($datax); 40 | 41 | 42 | // Display the graph 43 | $graph->Stroke(); 44 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example17.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetShadow(); 13 | $graph->img->SetMargin(40,30,20,40); 14 | 15 | // Create the linear plots for each category 16 | $dplot[] = new LinePLot($datay1); 17 | $dplot[] = new LinePLot($datay2); 18 | $dplot[] = new LinePLot($datay3); 19 | 20 | $dplot[0]->SetFillColor("red"); 21 | $dplot[1]->SetFillColor("blue"); 22 | $dplot[2]->SetFillColor("green"); 23 | 24 | // Create the accumulated graph 25 | $accplot = new AccLinePlot($dplot); 26 | 27 | // Add the plot to the graph 28 | $graph->Add($accplot); 29 | 30 | $graph->xaxis->SetTextTickInterval(2); 31 | $graph->title->Set("Example 17"); 32 | $graph->xaxis->title->Set("X-title"); 33 | $graph->yaxis->title->Set("Y-title"); 34 | 35 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 38 | 39 | // Display the graph 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example18.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $graph->Add($bplot); 20 | 21 | // Setup the titles 22 | $graph->title->Set("A simple bar graph"); 23 | $graph->xaxis->title->Set("X-title"); 24 | $graph->yaxis->title->Set("Y-title"); 25 | 26 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 27 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | 30 | // Display the graph 31 | $graph->Stroke(); 32 | ?> 33 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example19.1.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | 20 | // Adjust fill color 21 | $bplot->SetFillColor('orange'); 22 | $graph->Add($bplot); 23 | 24 | // Setup the titles 25 | $graph->title->Set("Bar graph, linear scale"); 26 | $graph->xaxis->title->Set("X-title"); 27 | $graph->yaxis->title->Set("Y-title"); 28 | 29 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | // Display the graph 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example19.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | 20 | // Adjust fill color 21 | $bplot->SetFillColor('orange'); 22 | $graph->Add($bplot); 23 | 24 | // Setup the titles 25 | $graph->title->Set("A simple bar graph"); 26 | $graph->xaxis->title->Set("X-title"); 27 | $graph->yaxis->title->Set("Y-title"); 28 | 29 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | // Display the graph 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example2.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | 14 | $lineplot->value->Show(); 15 | $lineplot->value->SetColor("red"); 16 | $lineplot->value->SetFont(FF_FONT1,FS_BOLD); 17 | 18 | 19 | // Add the plot to the graph 20 | $graph->Add($lineplot); 21 | 22 | $graph->img->SetMargin(40,20,20,40); 23 | $graph->title->Set("Example 2.1"); 24 | $graph->xaxis->title->Set("X-title"); 25 | $graph->yaxis->title->Set("Y-title"); 26 | 27 | 28 | // Display the graph 29 | $graph->Stroke(); 30 | ?> 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example2.5.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | 14 | // Add the plot to the graph 15 | $graph->Add($lineplot); 16 | 17 | $graph->img->SetMargin(40,20,20,40); 18 | $graph->title->Set("Example 2.5"); 19 | $graph->xaxis->title->Set("X-title"); 20 | $graph->xaxis->SetPos("min"); 21 | $graph->yaxis->title->Set("Y-title"); 22 | 23 | 24 | // Display the graph 25 | $graph->Stroke(); 26 | ?> 27 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example2.6.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | $lineplot->SetStepStyle(); 14 | 15 | // Add the plot to the graph 16 | $graph->Add($lineplot); 17 | 18 | $graph->img->SetMargin(40,20,20,40); 19 | $graph->title->Set("Example 2.6 (Line with stepstyle)"); 20 | $graph->xaxis->title->Set("X-title"); 21 | $graph->xaxis->SetPos("min"); 22 | $graph->yaxis->title->Set("Y-title"); 23 | 24 | 25 | // Display the graph 26 | $graph->Stroke(); 27 | ?> 28 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Setup margin and titles 12 | $graph->img->SetMargin(40,20,20,40); 13 | $graph->title->Set("Example 2"); 14 | $graph->xaxis->title->Set("X-title"); 15 | $graph->yaxis->title->Set("Y-title"); 16 | 17 | // Create the linear plot 18 | $lineplot=new LinePlot($ydata); 19 | 20 | // Add the plot to the graph 21 | $graph->Add($lineplot); 22 | 23 | // Display the graph 24 | $graph->Stroke(); 25 | ?> 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | 20 | // Adjust fill color 21 | $bplot->SetFillColor('orange'); 22 | $bplot->value->Show(); 23 | $graph->Add($bplot); 24 | 25 | // Setup the titles 26 | $graph->title->Set("Bar graph"); 27 | $graph->xaxis->title->Set("X-title"); 28 | $graph->yaxis->title->Set("Y-title"); 29 | 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | 34 | // Display the graph 35 | $graph->Stroke(); 36 | ?> 37 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->yaxis->scale->SetGrace(20); 11 | 12 | // Add a drop shadow 13 | $graph->SetShadow(); 14 | 15 | // Adjust the margin a bit to make more room for titles 16 | $graph->img->SetMargin(40,30,20,40); 17 | 18 | // Create a bar pot 19 | $bplot = new BarPlot($datay); 20 | 21 | // Adjust fill color 22 | $bplot->SetFillColor('orange'); 23 | $bplot->value->Show(); 24 | $graph->Add($bplot); 25 | 26 | // Setup the titles 27 | $graph->title->Set("Bar graph with Y-scale grace"); 28 | $graph->xaxis->title->Set("X-title"); 29 | $graph->yaxis->title->Set("Y-title"); 30 | 31 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 34 | 35 | // Display the graph 36 | $graph->Stroke(); 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->yaxis->scale->SetGrace(20); 11 | 12 | // Add a drop shadow 13 | $graph->SetShadow(); 14 | 15 | // Adjust the margin a bit to make more room for titles 16 | $graph->img->SetMargin(40,30,20,40); 17 | 18 | // Create a bar pot 19 | $bplot = new BarPlot($datay); 20 | 21 | // Adjust fill color 22 | $bplot->SetFillColor('orange'); 23 | $bplot->value->Show(); 24 | $bplot->value->SetFont(FF_ARIAL,FS_BOLD,10); 25 | $bplot->value->SetAngle(45); 26 | $bplot->value->SetFormat('%0.1f'); 27 | $graph->Add($bplot); 28 | 29 | // Setup the titles 30 | $graph->title->Set("Bar graph with Y-scale grace"); 31 | $graph->xaxis->title->Set("X-title"); 32 | $graph->yaxis->title->Set("Y-title"); 33 | 34 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | 38 | // Display the graph 39 | $graph->Stroke(); 40 | ?> 41 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->yaxis->scale->SetGrace(20); 11 | 12 | // Add a drop shadow 13 | $graph->SetShadow(); 14 | 15 | // Adjust the margin a bit to make more room for titles 16 | $graph->img->SetMargin(40,30,20,40); 17 | 18 | // Create a bar pot 19 | $bplot = new BarPlot($datay); 20 | 21 | // Adjust fill color 22 | $bplot->SetFillColor('orange'); 23 | $bplot->SetShadow(); 24 | $bplot->value->Show(); 25 | $bplot->value->SetFont(FF_ARIAL,FS_BOLD,10); 26 | $bplot->value->SetAngle(45); 27 | $bplot->value->SetFormat('%0.1f'); 28 | $graph->Add($bplot); 29 | 30 | // Setup the titles 31 | $graph->title->Set("Bar graph with drop shadow"); 32 | $graph->xaxis->title->Set("X-title"); 33 | $graph->yaxis->title->Set("Y-title"); 34 | 35 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 38 | 39 | // Display the graph 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.5.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | 20 | // Adjust fill color 21 | $bplot->SetFillColor('orange'); 22 | 23 | // Setup values 24 | $bplot->value->Show(); 25 | $bplot->value->SetFormat('%d'); 26 | $bplot->value->SetFont(FF_FONT1,FS_BOLD); 27 | 28 | // Center the values in the bar 29 | $bplot->SetValuePos('center'); 30 | 31 | // Make the bar a little bit wider 32 | $bplot->SetWidth(0.7); 33 | 34 | $graph->Add($bplot); 35 | 36 | // Setup the titles 37 | $graph->title->Set("Centered values for bars"); 38 | $graph->xaxis->title->Set("X-title"); 39 | $graph->yaxis->title->Set("Y-title"); 40 | 41 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 42 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 43 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 44 | 45 | // Display the graph 46 | $graph->Stroke(); 47 | ?> 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example20.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | 20 | // Adjust fill color 21 | $bplot->SetFillColor('orange'); 22 | $bplot->SetWidth(1.0); 23 | $graph->Add($bplot); 24 | 25 | // Setup the titles 26 | $graph->title->Set("Bar graph"); 27 | $graph->xaxis->title->Set("X-title"); 28 | $graph->yaxis->title->Set("Y-title"); 29 | 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | 34 | // Display the graph 35 | $graph->Stroke(); 36 | ?> 37 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example21.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | $graph->SetShadow(); 13 | $graph->img->SetMargin(40,30,20,40); 14 | 15 | // Create the bar plots 16 | $b1plot = new BarPlot($data1y); 17 | $b1plot->SetFillColor("orange"); 18 | $b2plot = new BarPlot($data2y); 19 | $b2plot->SetFillColor("blue"); 20 | 21 | // Create the grouped bar plot 22 | $gbplot = new GroupBarPlot(array($b1plot,$b2plot)); 23 | 24 | // ...and add it to the graPH 25 | $graph->Add($gbplot); 26 | 27 | $graph->title->Set("Example 21"); 28 | $graph->xaxis->title->Set("X-title"); 29 | $graph->yaxis->title->Set("Y-title"); 30 | 31 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 34 | 35 | // Display the graph 36 | $graph->Stroke(); 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example22.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | $graph->SetShadow(); 12 | 13 | $graph->img->SetMargin(40,30,20,40); 14 | 15 | // Create the bar plots 16 | $b1plot = new BarPlot($data1y); 17 | $b1plot->SetFillColor("orange"); 18 | $b2plot = new BarPlot($data2y); 19 | $b2plot->SetFillColor("blue"); 20 | 21 | // Create the grouped bar plot 22 | $gbplot = new GroupBarPlot(array($b1plot,$b2plot)); 23 | $gbplot->SetWidth(0.9); 24 | 25 | // ...and add it to the graPH 26 | $graph->Add($gbplot); 27 | 28 | $graph->title->Set("Adjusting the width"); 29 | $graph->xaxis->title->Set("X-title"); 30 | $graph->yaxis->title->Set("Y-title"); 31 | 32 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 33 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 34 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 35 | 36 | // Display the graph 37 | $graph->Stroke(); 38 | ?> 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example23.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 13 | 14 | $graph->SetShadow(); 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create the bar plots 18 | $b1plot = new BarPlot($data1y); 19 | $b1plot->SetFillColor("orange"); 20 | $b2plot = new BarPlot($data2y); 21 | $b2plot->SetFillColor("blue"); 22 | 23 | // Create the grouped bar plot 24 | $gbplot = new AccBarPlot(array($b1plot,$b2plot)); 25 | 26 | // ...and add it to the graPH 27 | $graph->Add($gbplot); 28 | 29 | $graph->title->Set("Accumulated bar plots"); 30 | $graph->xaxis->title->Set("X-title"); 31 | $graph->yaxis->title->Set("Y-title"); 32 | 33 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 34 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | 37 | // Display the graph 38 | $graph->Stroke(); 39 | ?> 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example25.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $graph->Add($bplot); 20 | 21 | // Create and add a new text 22 | $txt=new Text("This is a text"); 23 | $txt->SetPos(10,25); 24 | $txt->SetFont(FF_FONT1,FS_BOLD); 25 | $txt->SetBox('yellow','navy','gray'); 26 | $txt->SetColor("red"); 27 | $graph->AddText($txt); 28 | 29 | 30 | // Setup the titles 31 | $graph->title->Set("A simple bar graph"); 32 | $graph->xaxis->title->Set("X-title"); 33 | $graph->yaxis->title->Set("Y-title"); 34 | 35 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 38 | 39 | // Display the graph 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example25.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $graph->Add($bplot); 20 | 21 | // Create and add a new text 22 | $txt=new Text("This is a text\nwith many\nand even\nmore\nlines of text"); 23 | $txt->SetPos(0.5,0.5,"center","center"); 24 | $txt->SetFont(FF_FONT2,FS_BOLD); 25 | $txt->ParagraphAlign('cenetered'); 26 | $txt->SetBox('yellow','navy','gray'); 27 | $txt->SetColor("red"); 28 | $graph->AddText($txt); 29 | 30 | 31 | // Setup the titles 32 | $graph->title->Set("A simple bar graph"); 33 | $graph->xaxis->title->Set("X-title"); 34 | $graph->yaxis->title->Set("Y-title"); 35 | 36 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 37 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 38 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 39 | 40 | // Display the graph 41 | $graph->Stroke(); 42 | ?> 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example25.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Add a drop shadow 12 | $graph->SetShadow(); 13 | 14 | // Adjust the margin a bit to make more room for titles 15 | $graph->img->SetMargin(40,30,20,40); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $graph->Add($bplot); 20 | 21 | // Create and add a new text 22 | $txt=new Text("This is a text"); 23 | $txt->SetPos(0,0); 24 | $txt->SetColor("red"); 25 | $graph->AddText($txt); 26 | 27 | 28 | // Setup the titles 29 | $graph->title->Set("A simple bar graph"); 30 | $graph->xaxis->title->Set("X-title"); 31 | $graph->yaxis->title->Set("Y-title"); 32 | 33 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 34 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | 37 | // Display the graph 38 | $graph->Stroke(); 39 | ?> 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example26.1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("A simple Pie plot"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->SetLegends($gDateLocale->GetShortMonth()); 15 | $p1->SetCenter(0.4); 16 | 17 | $graph->Add($p1); 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example26.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("A simple Pie plot"); 11 | 12 | $p1 = new PiePlot($data); 13 | $graph->Add($p1); 14 | $graph->Stroke(); 15 | 16 | ?> 17 | 18 | 19 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example27.1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | $graph->title->Set("A simple Pie plot"); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $p1 = new PiePlot3D($data); 15 | $p1->SetAngle(20); 16 | $p1->SetSize(0.5); 17 | $p1->SetCenter(0.45); 18 | $p1->SetLegends($gDateLocale->GetShortMonth()); 19 | 20 | $graph->Add($p1); 21 | $graph->Stroke(); 22 | 23 | ?> 24 | 25 | 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example27.2.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | $graph->title->Set("A simple Pie plot"); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $p1 = new PiePlot($data); 15 | $p1->ExplodeSlice(1); 16 | $p1->SetCenter(0.45); 17 | $p1->SetLegends($gDateLocale->GetShortMonth()); 18 | 19 | $graph->Add($p1); 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example27.3.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | $graph->title->Set("A simple 3D Pie plot"); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $p1 = new PiePlot3D($data); 15 | $p1->ExplodeSlice(1); 16 | $p1->SetCenter(0.45); 17 | $p1->SetLegends($gDateLocale->GetShortMonth()); 18 | 19 | $graph->Add($p1); 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example27.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | $graph->title->Set("A simple Pie plot"); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $p1 = new PiePlot3D($data); 15 | $p1->SetSize(0.5); 16 | $p1->SetCenter(0.45); 17 | $p1->SetLegends($gDateLocale->GetShortMonth()); 18 | 19 | $graph->Add($p1); 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example28.1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("'earth' Theme"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->SetTheme("earth"); 15 | $p1->SetCenter(0.5,0.55); 16 | $p1->value->Show(false); 17 | $graph->Add($p1); 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example28.2.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("'pastel' Theme"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->SetTheme("pastel"); 15 | $p1->SetCenter(0.5,0.55); 16 | $p1->value->Show(false); 17 | $graph->Add($p1); 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example28.3.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("'water' Theme"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->SetTheme("water"); 15 | $p1->SetCenter(0.5,0.55); 16 | $p1->value->Show(false); 17 | $graph->Add($p1); 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example28.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("'sand' Theme"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->SetTheme("sand"); 15 | $p1->SetCenter(0.5,0.55); 16 | $p1->value->Show(false); 17 | $graph->Add($p1); 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | $lineplot->mark->SetType(MARK_UTRIANGLE); 14 | 15 | // Add the plot to the graph 16 | $graph->Add($lineplot); 17 | 18 | $graph->img->SetMargin(40,20,20,40); 19 | $graph->title->Set("Example 3.1"); 20 | $graph->xaxis->title->Set("X-title"); 21 | $graph->yaxis->title->Set("Y-title"); 22 | 23 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 24 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 25 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 26 | 27 | $lineplot->SetColor("blue"); 28 | $lineplot->SetWeight(2); 29 | $graph->yaxis->SetColor("red"); 30 | $graph->yaxis->SetWeight(2); 31 | $graph->SetShadow(); 32 | 33 | // Display the graph 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.2.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->yaxis->scale->SetGrace(10,10); 11 | 12 | // Create the linear plot 13 | $lineplot=new LinePlot($ydata); 14 | $lineplot->mark->SetType(MARK_CIRCLE); 15 | 16 | // Add the plot to the graph 17 | $graph->Add($lineplot); 18 | 19 | $graph->img->SetMargin(40,20,20,40); 20 | $graph->title->Set("Grace value, version 1"); 21 | $graph->xaxis->title->Set("X-title"); 22 | $graph->yaxis->title->Set("Y-title"); 23 | 24 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 25 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 26 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 27 | 28 | $lineplot->SetColor("blue"); 29 | $lineplot->SetWeight(2); 30 | $graph->yaxis->SetWeight(2); 31 | $graph->SetShadow(); 32 | 33 | // Display the graph 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.2.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | $graph->yaxis->scale->SetGrace(10,10); 11 | 12 | // Create the linear plot 13 | $lineplot=new LinePlot($ydata); 14 | $lineplot->mark->SetType(MARK_CIRCLE); 15 | 16 | // Add the plot to the graph 17 | $graph->Add($lineplot); 18 | 19 | $graph->img->SetMargin(40,20,20,40); 20 | $graph->title->Set("Grace value version 2"); 21 | $graph->xaxis->title->Set("X-title"); 22 | $graph->yaxis->title->Set("Y-title"); 23 | 24 | $graph->xaxis->SetPos('min'); 25 | 26 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 27 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | 30 | $lineplot->SetColor("blue"); 31 | $lineplot->SetWeight(2); 32 | $graph->yaxis->SetWeight(2); 33 | $graph->SetShadow(); 34 | 35 | // Display the graph 36 | $graph->Stroke(); 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | $lineplot->mark->SetType(MARK_CIRCLE); 14 | 15 | // Add the plot to the graph 16 | $graph->Add($lineplot); 17 | 18 | $graph->img->SetMargin(40,20,20,40); 19 | $graph->title->Set("Example 3.2"); 20 | $graph->xaxis->title->Set("X-title"); 21 | $graph->yaxis->title->Set("Y-title"); 22 | 23 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 24 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 25 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 26 | 27 | $lineplot->SetColor("blue"); 28 | $lineplot->SetWeight(2); 29 | $graph->yaxis->SetWeight(2); 30 | $graph->SetShadow(); 31 | 32 | // Display the graph 33 | $graph->Stroke(); 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Adjust the margin 12 | $graph->img->SetMargin(40,20,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $lineplot=new LinePlot($ydata); 17 | $lineplot->mark->SetType(MARK_UTRIANGLE); 18 | $lineplot->value->show(); 19 | 20 | // Add the plot to the graph 21 | $graph->Add($lineplot); 22 | 23 | $graph->title->Set("Displaying the values"); 24 | $graph->xaxis->title->Set("X-title"); 25 | $graph->yaxis->title->Set("Y-title"); 26 | 27 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 30 | 31 | $lineplot->SetColor("blue"); 32 | $lineplot->SetWeight(2); 33 | 34 | 35 | // Display the graph 36 | $graph->Stroke(); 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Adjust the margin 12 | $graph->img->SetMargin(40,20,20,40); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $lineplot=new LinePlot($ydata); 17 | $lineplot->mark->SetType(MARK_UTRIANGLE); 18 | $lineplot->value->show(); 19 | $lineplot->value->SetColor('darkred'); 20 | $lineplot->value->SetFont(FF_FONT1,FS_BOLD); 21 | $lineplot->value->SetFormat('$%0.1f'); 22 | 23 | 24 | // Add the plot to the graph 25 | $graph->Add($lineplot); 26 | 27 | $graph->title->Set("Displaying the values"); 28 | $graph->xaxis->title->Set("X-title"); 29 | $graph->yaxis->title->Set("Y-title"); 30 | 31 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 34 | 35 | $lineplot->SetColor("blue"); 36 | $lineplot->SetWeight(2); 37 | 38 | 39 | // Display the graph 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 10 | 11 | // Create the linear plot 12 | $lineplot=new LinePlot($ydata); 13 | 14 | 15 | // Add the plot to the graph 16 | $graph->Add($lineplot); 17 | 18 | $graph->img->SetMargin(40,20,20,40); 19 | $graph->title->Set("Example 3"); 20 | $graph->xaxis->title->Set("X-title"); 21 | $graph->yaxis->title->Set("Y-title"); 22 | 23 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 24 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 25 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 26 | 27 | $lineplot->SetColor("blue"); 28 | $lineplot->SetWeight(2); 29 | $graph->yaxis->SetColor("red"); 30 | $graph->yaxis->SetWeight(2); 31 | $graph->SetShadow(); 32 | 33 | // Display the graph 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | 12 | // Create the linear plot 13 | $lineplot=new LinePlot($ydata); 14 | 15 | $lineplot2=new LinePlot($ydata2); 16 | 17 | // Add the plot to the graph 18 | $graph->Add($lineplot); 19 | $graph->Add($lineplot2); 20 | 21 | $graph->img->SetMargin(40,20,20,40); 22 | $graph->title->Set("Example 4"); 23 | $graph->xaxis->title->Set("X-title"); 24 | $graph->yaxis->title->Set("Y-title"); 25 | 26 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 27 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | 30 | $lineplot->SetColor("blue"); 31 | $lineplot->SetWeight(2); 32 | 33 | $lineplot2->SetColor("orange"); 34 | $lineplot2->SetWeight(2); 35 | 36 | $graph->yaxis->SetColor("red"); 37 | $graph->yaxis->SetWeight(2); 38 | $graph->SetShadow(); 39 | 40 | // Display the graph 41 | $graph->Stroke(); 42 | ?> 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example5.1.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,20,40); 11 | $graph->SetScale("textlin"); 12 | $graph->SetY2Scale("lin"); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $lineplot=new LinePlot($ydata); 17 | $lineplot2=new LinePlot($y2data); 18 | 19 | // Add the plot to the graph 20 | $graph->Add($lineplot); 21 | $graph->AddY2($lineplot2); 22 | $lineplot2->SetColor("orange"); 23 | $lineplot2->SetWeight(2); 24 | $graph->y2axis->SetColor("orange"); 25 | 26 | $graph->title->Set("Example 5"); 27 | $graph->xaxis->title->Set("X-title"); 28 | $graph->yaxis->title->Set("Y-title"); 29 | 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | 34 | $lineplot->SetColor("blue"); 35 | $lineplot->SetWeight(2); 36 | 37 | $lineplot2->SetColor("orange"); 38 | $lineplot2->SetWeight(2); 39 | 40 | $graph->yaxis->SetColor("blue"); 41 | 42 | $lineplot->SetLegend("Plot 1"); 43 | $lineplot2->SetLegend("Plot 2"); 44 | 45 | // Display the graph 46 | $graph->Stroke(); 47 | ?> 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example5.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,20,40); 11 | $graph->SetScale("textlin"); 12 | $graph->SetY2Scale("lin"); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $lineplot=new LinePlot($ydata); 17 | $lineplot2=new LinePlot($y2data); 18 | 19 | // Add the plot to the graph 20 | $graph->Add($lineplot); 21 | $graph->AddY2($lineplot2); 22 | $lineplot2->SetColor("orange"); 23 | $lineplot2->SetWeight(2); 24 | $graph->y2axis->SetColor("orange"); 25 | 26 | $graph->title->Set("Example 5"); 27 | $graph->xaxis->title->Set("X-title"); 28 | $graph->yaxis->title->Set("Y-title"); 29 | 30 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 33 | 34 | $lineplot->SetColor("blue"); 35 | $lineplot->SetWeight(2); 36 | 37 | $lineplot2->SetColor("orange"); 38 | $lineplot2->SetWeight(2); 39 | 40 | $graph->yaxis->SetColor("blue"); 41 | 42 | // Display the graph 43 | $graph->Stroke(); 44 | ?> 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example6.2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 11 | $graph->SetShadow(); 12 | 13 | // Adjust the margin 14 | $graph->img->SetMargin(40,40,20,70); 15 | 16 | // Create the two linear plot 17 | $lineplot=new LinePlot($ydata); 18 | $lineplot->SetStepStyle(); 19 | 20 | // Adjust the axis color 21 | $graph->yaxis->SetColor("blue"); 22 | 23 | $graph->title->Set("Example 6.2"); 24 | $graph->xaxis->title->Set("X-title"); 25 | $graph->yaxis->title->Set("Y-title"); 26 | 27 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 28 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 29 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 30 | 31 | // Set the colors for the plots 32 | $lineplot->SetColor("blue"); 33 | $lineplot->SetWeight(2); 34 | 35 | // Set the legends for the plots 36 | $lineplot->SetLegend("Plot 1"); 37 | 38 | // Add the plot to the graph 39 | $graph->Add($lineplot); 40 | 41 | // Adjust the legend position 42 | $graph->legend->SetLayout(LEGEND_HOR); 43 | $graph->legend->Pos(0.4,0.95,"center","bottom"); 44 | 45 | // Display the graph 46 | $graph->Stroke(); 47 | ?> 48 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example7.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetY2Scale("log"); 13 | $graph->SetShadow(); 14 | $graph->img->SetMargin(40,110,20,40); 15 | 16 | // Create the linear plot 17 | $lineplot=new LinePlot($ydata); 18 | $lineplot2=new LinePlot($y2data); 19 | 20 | // Add the plot to the graph 21 | $graph->Add($lineplot); 22 | $graph->AddY2($lineplot2); 23 | $graph->yaxis->SetColor('blue'); 24 | 25 | $graph->title->Set("Example 7"); 26 | $graph->xaxis->title->Set("X-title"); 27 | $graph->yaxis->title->Set("Y-title"); 28 | 29 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | $lineplot->SetColor("blue"); 34 | $lineplot->SetWeight(2); 35 | $lineplot2->SetWeight(2); 36 | 37 | $lineplot->SetLegend("Plot 1"); 38 | $lineplot2->SetLegend("Plot 2"); 39 | 40 | $graph->legend->Pos(0.05,0.5,"right","center"); 41 | 42 | // Display the graph 43 | $graph->Stroke(); 44 | ?> 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/example9.php: -------------------------------------------------------------------------------- 1 | SetScale("textlog"); 13 | 14 | $graph->img->SetMargin(40,110,20,40); 15 | $graph->SetShadow(); 16 | 17 | $graph->ygrid->Show(true,true); 18 | $graph->xgrid->Show(true,false); 19 | 20 | // Specify the tick labels 21 | $a = $gDateLocale->GetShortMonth(); 22 | $graph->xaxis->SetTickLabels($a); 23 | 24 | // Create the linear plot 25 | $lineplot=new LinePlot($ydata); 26 | 27 | // Add the plot to the graph 28 | $graph->Add($lineplot); 29 | 30 | $graph->title->Set("Examples 9"); 31 | $graph->xaxis->title->Set("X-title"); 32 | $graph->yaxis->title->Set("Y-title"); 33 | 34 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 35 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 36 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 37 | 38 | $lineplot->SetColor("blue"); 39 | $lineplot->SetWeight(2); 40 | 41 | $graph->yaxis->SetColor("blue"); 42 | 43 | $lineplot->SetLegend("Plot 1"); 44 | 45 | $graph->legend->Pos(0.05,0.5,"right","center"); 46 | 47 | // Display the graph 48 | $graph->Stroke(); 49 | ?> 50 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledgridex1.php: -------------------------------------------------------------------------------- 1 | SetMarginColor('white'); 12 | $graph->SetScale("textlin"); 13 | $graph->SetFrame(false); 14 | $graph->SetMargin(30,50,30,30); 15 | 16 | $graph->title->Set('Filled Y-grid'); 17 | 18 | 19 | $graph->yaxis->HideZeroLabel(); 20 | $graph->ygrid->SetFill(true,'#EFEFEF@0.5','#BBCCFF@0.5'); 21 | $graph->xgrid->Show(); 22 | 23 | $graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth()); 24 | 25 | // Create the first line 26 | $p1 = new LinePlot($datay1); 27 | $p1->SetColor("navy"); 28 | $p1->SetLegend('Line 1'); 29 | $graph->Add($p1); 30 | 31 | // Create the second line 32 | $p2 = new LinePlot($datay2); 33 | $p2->SetColor("red"); 34 | $p2->SetLegend('Line 2'); 35 | $graph->Add($p2); 36 | 37 | // Create the third line 38 | $p3 = new LinePlot($datay3); 39 | $p3->SetColor("orange"); 40 | $p3->SetLegend('Line 3'); 41 | $graph->Add($p3); 42 | 43 | $graph->legend->SetShadow('gray@0.4',5); 44 | $graph->legend->SetPos(0.1,0.1,'right','top'); 45 | // Output line 46 | $graph->Stroke(); 47 | 48 | ?> 49 | 50 | 51 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledline01.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 8 | $graph->SetScale("textlin"); 9 | $graph->SetShadow(); 10 | $graph->title->Set("Example of filled line plot"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new LinePlot($datay); 14 | $p1->SetFillColor("orange"); 15 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 16 | $p1->mark->SetFillColor("red"); 17 | $p1->mark->SetWidth(4); 18 | $graph->Add($p1); 19 | 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledlineex01.1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 8 | 9 | $graph->img->SetMargin(40,40,40,40); 10 | $graph->SetShadow(); 11 | $graph->SetGridDepth(DEPTH_FRONT); 12 | 13 | $graph->title->Set("Example of filled line plot"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | $p1 = new LinePlot($datay); 17 | $p1->SetFillColor("orange"); 18 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 19 | $p1->mark->SetFillColor("red"); 20 | $p1->mark->SetWidth(4); 21 | $graph->Add($p1); 22 | 23 | $graph->Stroke(); 24 | ?> 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledlineex01.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 8 | 9 | $graph->img->SetMargin(40,40,40,40); 10 | $graph->SetShadow(); 11 | 12 | $graph->title->Set("Example of filled line plot"); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | $p1 = new LinePlot($datay); 16 | $p1->SetFillColor("orange"); 17 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 18 | $p1->mark->SetFillColor("red"); 19 | $p1->mark->SetWidth(4); 20 | $graph->Add($p1); 21 | 22 | $graph->Stroke(); 23 | ?> 24 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledlineex02.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 8 | $graph->SetScale("textlin"); 9 | $graph->SetShadow(); 10 | $graph->title->Set("Example of filled line plot"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | $graph->subtitle->Set("(Starting from Y=0)"); 13 | 14 | $graph->yaxis->scale->SetAutoMin(0); 15 | 16 | $p1 = new LinePlot($datay); 17 | $p1->SetFillColor("orange"); 18 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 19 | $p1->mark->SetFillColor("red"); 20 | $p1->mark->SetWidth(4); 21 | $graph->Add($p1); 22 | 23 | $graph->Stroke(); 24 | ?> 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledlineex03.php: -------------------------------------------------------------------------------- 1 | SetScale('intlin'); 10 | $graph->title->Set('Filled line with NULL values'); 11 | //Make sure data starts from Zero whatever data we have 12 | $graph->yscale->SetAutoMin(0); 13 | 14 | $p1 = new LinePlot($datay); 15 | $p1->SetFillColor('lightblue'); 16 | $graph->Add($p1); 17 | 18 | // Output line 19 | $graph->Stroke(); 20 | 21 | ?> 22 | 23 | 24 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/filledstepstyleex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetShadow(true); 13 | $graph->SetMarginColor("antiquewhite"); 14 | $graph->img->SetMargin(60,40,40,50); 15 | $graph->img->setTransparent("white"); 16 | $graph->xaxis->SetFont(FF_FONT1); 17 | $graph->xaxis->setTextTickInterval(1); 18 | $graph->xaxis->SetTextLabelInterval(1); 19 | $graph->legend->SetFillColor("antiquewhite"); 20 | $graph->legend->SetShadow(true); 21 | $graph->legend->SetLayout(LEGEND_VERT); 22 | $graph->legend->Pos(0.02,0.01); 23 | $graph->title->Set("Step Styled Example"); 24 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 25 | 26 | $lineplot = new LinePlot($ydata); 27 | $lineplot->SetColor("black"); 28 | $lineplot->setFillColor("gray7"); 29 | $lineplot->SetStepStyle(); 30 | $lineplot->SetLegend(" 2002 "); 31 | 32 | // add plot to the graph 33 | $graph->Add($lineplot); 34 | $graph->ygrid->show(false,false); 35 | 36 | // display graph 37 | $graph->Stroke(); 38 | 39 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/fixscale_radarex1.php: -------------------------------------------------------------------------------- 1 | SetScale("lin",0,50); 8 | $graph->yscale->ticks->Set(25,5); 9 | $graph->SetColor("white"); 10 | $graph->SetShadow(); 11 | 12 | $graph->SetCenter(0.5,0.55); 13 | 14 | $graph->axis->SetFont(FF_FONT1,FS_BOLD); 15 | $graph->axis->SetWeight(2); 16 | 17 | // Uncomment the following lines to also show grid lines. 18 | //$graph->grid->SetLineStyle("longdashed"); 19 | //$graph->grid->SetColor("navy"); 20 | //$graph->grid->Show(); 21 | 22 | $graph->ShowMinorTickMarks(); 23 | 24 | $graph->title->Set("Quality result"); 25 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 26 | $graph->SetTitles(array("One","Two","Three","Four","Five","Sex","Seven","Eight","Nine","Ten")); 27 | 28 | $plot = new RadarPlot(array(12,35,20,30,33,15,37)); 29 | $plot->SetLegend("Goal"); 30 | $plot->SetColor("red","lightred"); 31 | $plot->SetFillColor('lightblue'); 32 | $plot->SetLineWeight(2); 33 | 34 | $graph->Add($plot); 35 | $graph->Stroke(); 36 | 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/funcex2.php: -------------------------------------------------------------------------------- 1 | E(-M_PI,M_PI,25); 8 | 9 | $graph = new Graph(380,450,"auto"); 10 | $graph->SetScale("linlin"); 11 | $graph->SetShadow(); 12 | $graph->img->SetMargin(50,50,60,40); 13 | $graph->SetBox(true,'black',2); 14 | $graph->SetMarginColor('white'); 15 | $graph->SetColor('lightyellow'); 16 | $graph->SetAxisStyle(AXSTYLE_SIMPLE); 17 | 18 | //$graph->xaxis->SetLabelFormat('%.1f'); 19 | 20 | $graph->title->Set("Function plot with marker"); 21 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 22 | $graph->subtitle->Set("(BOXOUT Axis style)"); 23 | $graph->subtitle->SetFont(FF_FONT1,FS_NORMAL); 24 | 25 | $lp1 = new LinePlot($ydata,$xdata); 26 | $lp1->mark->SetType(MARK_FILLEDCIRCLE); 27 | $lp1->mark->SetFillColor("red"); 28 | $lp1->SetColor("blue"); 29 | 30 | $graph->Add($lp1); 31 | $graph->Stroke(); 32 | ?> 33 | 34 | 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/funcex3.php: -------------------------------------------------------------------------------- 1 | E(-M_PI,M_PI,25); 8 | 9 | $graph = new Graph(350,430,"auto"); 10 | $graph->SetScale("linlin"); 11 | $graph->SetShadow(); 12 | $graph->img->SetMargin(50,50,60,40); 13 | $graph->SetBox(true,'black',2); 14 | $graph->SetMarginColor('white'); 15 | $graph->SetColor('lightyellow'); 16 | $graph->SetAxisStyle(AXSTYLE_BOXIN); 17 | $graph->xgrid->Show(); 18 | 19 | 20 | //$graph->xaxis->SetLabelFormat('%.0f'); 21 | 22 | $graph->img->SetMargin(50,50,60,40); 23 | 24 | $graph->title->Set("Function plot"); 25 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 26 | $graph->subtitle->Set("(BOXIN Axis style)"); 27 | $graph->subtitle->SetFont(FF_FONT1,FS_NORMAL); 28 | 29 | $lp1 = new LinePlot($ydata,$xdata); 30 | $lp1->SetColor("blue"); 31 | $lp1->SetWeight(2); 32 | 33 | $graph->Add($lp1); 34 | $graph->Stroke(); 35 | ?> 36 | 37 | 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttconstrainex0.php: -------------------------------------------------------------------------------- 1 | title->Set("Example with grouping and constrains"); 25 | 26 | // Setup scale 27 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 28 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 29 | 30 | // Add the specified activities 31 | $graph->CreateSimple($data,$constrains,$progress); 32 | 33 | // .. and stroke the graph 34 | $graph->Stroke(); 35 | 36 | ?> 37 | 38 | 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttconstrainex1.php: -------------------------------------------------------------------------------- 1 | title->Set("Example with grouping and constrains"); 24 | 25 | // Setup scale 26 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 27 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 28 | 29 | // Add the specified activities 30 | $graph->CreateSimple($data,$constrains,$progress); 31 | 32 | // .. and stroke the graph 33 | $graph->Stroke(); 34 | 35 | ?> 36 | 37 | 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttconstrainex2.php: -------------------------------------------------------------------------------- 1 | title->Set("Example with grouping and constrains"); 25 | //$graph->SetFrame(false); 26 | 27 | // Setup scale 28 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 29 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 30 | 31 | // Add the specified activities 32 | $graph->CreateSimple($data,$constrains,$progress); 33 | 34 | // .. and stroke the graph 35 | $graph->Stroke(); 36 | 37 | ?> 38 | 39 | 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttcsimex01.php: -------------------------------------------------------------------------------- 1 | SetCSIMTarget('#','Go back 1'); 9 | $bar1->title->SetCSIMTarget('#','Go back 1 (title)'); 10 | $bar2 = new GanttBar(1,"Activity 2","2002-01-03","2002-01-25"); 11 | $bar2->SetCSIMTarget('#','Go back 2'); 12 | $bar2->title->SetCSIMTarget('#','Go back 2 (title)'); 13 | 14 | $graph = new GanttGraph(500); 15 | $graph->title->Set("Example with image map"); 16 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 17 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY); 18 | $graph->scale->week->SetFont(FF_FONT1); 19 | 20 | $graph->Add(array($bar1,$bar2)); 21 | 22 | // And stroke 23 | $graph->StrokeCSIM('ganttcsimex01.php'); 24 | 25 | 26 | ?> 27 | 28 | 29 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttcsimex02.php: -------------------------------------------------------------------------------- 1 | title->Set("Example with image map"); 25 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 26 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY); 27 | $graph->scale->week->SetFont(FF_FONT1); 28 | 29 | $graph->CreateSimple($data,$constrains,$progress); 30 | 31 | // Add the specified activities 32 | //SetupSimpleGantt($graph,$data,$constrains,$progress); 33 | 34 | // And stroke 35 | $graph->StrokeCSIM('ganttcsimex02.php'); 36 | 37 | 38 | ?> 39 | 40 | 41 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttex00.php: -------------------------------------------------------------------------------- 1 | Add($activity); 11 | 12 | // Display the Gantt chart 13 | $graph->Stroke(); 14 | ?> 15 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttex01.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 7 | 8 | // Add title and subtitle 9 | $graph->title->Set("A nice main title"); 10 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,12); 11 | $graph->subtitle->Set("(Draft version)"); 12 | 13 | // Show day, week and month scale 14 | $graph->ShowHeaders(GANTT_HDAY | GANTT_HWEEK | GANTT_HMONTH); 15 | 16 | // Instead of week number show the date for the first day in the week 17 | // on the week scale 18 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY); 19 | 20 | // Make the week scale font smaller than the default 21 | $graph->scale->week->SetFont(FF_FONT0); 22 | 23 | // Use the short name of the month together with a 2 digit year 24 | // on the month scale 25 | $graph->scale->month->SetStyle(MONTHSTYLE_SHORTNAMEYEAR2); 26 | 27 | // Format the bar for the first activity 28 | // ($row,$title,$startdate,$enddate) 29 | $activity = new GanttBar(0,"Project","2001-12-21","2002-02-20"); 30 | 31 | // Yellow diagonal line pattern on a red background 32 | $activity->SetPattern(BAND_RDIAG,"yellow"); 33 | $activity->SetFillColor("red"); 34 | 35 | // Finally add the bar to the graph 36 | $graph->Add($activity); 37 | 38 | // ... and display it 39 | $graph->Stroke(); 40 | ?> 41 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/ganttsimpleex1.php: -------------------------------------------------------------------------------- 1 | title->Set("Gantt Graph using CreateSimple()"); 18 | 19 | // Setup scale 20 | $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); 21 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY); 22 | 23 | // Add the specified activities 24 | $graph->CreateSimple($data); 25 | 26 | // .. and stroke the graph 27 | $graph->Stroke(); 28 | 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/gradlinefillex1.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 10 | $graph->SetScale("intlin"); 11 | $graph->SetMarginColor('darkgreen@0.8'); 12 | 13 | $graph->title->Set('Gradient filled line plot'); 14 | $graph->yscale->SetAutoMin(0); 15 | 16 | // Create the line 17 | $p1 = new LinePlot($datay); 18 | $p1->SetColor("blue"); 19 | $p1->SetWeight(0); 20 | $p1->SetFillGradient('red','yellow'); 21 | 22 | $graph->Add($p1); 23 | 24 | // Output line 25 | $graph->Stroke(); 26 | 27 | ?> 28 | 29 | 30 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/gradlinefillex2.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 10 | $graph->SetScale("intlin"); 11 | $graph->SetBox(); 12 | $graph->SetMarginColor('darkgreen@0.8'); 13 | 14 | // Setup a background gradient image 15 | $graph->SetBackgroundGradient('darkred','yellow',GRAD_HOR,BGRAD_PLOT); 16 | 17 | $graph->title->Set('Gradient filled line plot ex2'); 18 | $graph->yscale->SetAutoMin(0); 19 | 20 | // Create the line 21 | $p1 = new LinePlot($datay); 22 | $p1->SetFillGradient('white','darkgreen'); 23 | $graph->Add($p1); 24 | 25 | // Output line 26 | $graph->Stroke(); 27 | 28 | ?> 29 | 30 | 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/gradlinefillex3.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 10 | $graph->SetScale("intlin"); 11 | $graph->SetBox(); 12 | $graph->SetMarginColor('darkgreen@0.8'); 13 | 14 | // Setup a background gradient image 15 | $graph->SetBackgroundGradient('darkred','yellow',GRAD_HOR,BGRAD_PLOT); 16 | 17 | $graph->title->Set('Gradient filled line plot ex3'); 18 | $graph->yscale->SetAutoMin(0); 19 | 20 | // Create the line 21 | $p1 = new LinePlot($datay); 22 | $p1->SetFillGradient('white','darkgreen',4); 23 | $graph->Add($p1); 24 | 25 | // Output line 26 | $graph->Stroke(); 27 | 28 | ?> 29 | 30 | 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/gradlinefillex4.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 10 | $graph->SetScale("intlin"); 11 | $graph->SetBox(); 12 | $graph->SetMarginColor('darkgreen@0.8'); 13 | 14 | // Setup a background gradient image 15 | $graph->SetBackgroundGradient('darkred','yellow',GRAD_HOR,BGRAD_PLOT); 16 | 17 | $graph->title->Set('Gradient filled line plot ex2'); 18 | $graph->yscale->SetAutoMin(0); 19 | 20 | // Create the line 21 | $p1 = new LinePlot($datay); 22 | $p1->SetFillGradient('white','darkgreen'); 23 | $p1->SetStepStyle(); 24 | $graph->Add($p1); 25 | 26 | // Output line 27 | $graph->Stroke(); 28 | 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/groupbarex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetShadow(); 13 | $graph->img->SetMargin(40,30,40,40); 14 | $graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth()); 15 | 16 | $graph->xaxis->title->Set('Year 2002'); 17 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 18 | 19 | $graph->title->Set('Group bar plot'); 20 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 21 | 22 | $bplot1 = new BarPlot($datay1); 23 | $bplot2 = new BarPlot($datay2); 24 | $bplot3 = new BarPlot($datay3); 25 | 26 | $bplot1->SetFillColor("orange"); 27 | $bplot2->SetFillColor("brown"); 28 | $bplot3->SetFillColor("darkgreen"); 29 | 30 | $bplot1->SetShadow(); 31 | $bplot2->SetShadow(); 32 | $bplot3->SetShadow(); 33 | 34 | $bplot1->SetShadow(); 35 | $bplot2->SetShadow(); 36 | $bplot3->SetShadow(); 37 | 38 | $gbarplot = new GroupBarPlot(array($bplot1,$bplot2,$bplot3)); 39 | $gbarplot->SetWidth(0.6); 40 | $graph->Add($gbarplot); 41 | 42 | $graph->Stroke(); 43 | ?> 44 | 45 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/horizbarex4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 15 | 16 | $top = 60; 17 | $bottom = 30; 18 | $left = 80; 19 | $right = 30; 20 | $graph->Set90AndMargin($left,$right,$top,$bottom); 21 | 22 | // Nice shadow 23 | $graph->SetShadow(); 24 | 25 | // Setup labels 26 | $lbl = array("Andrew\nTait","Thomas\nAnderssen","Kevin\nSpacey","Nick\nDavidsson", 27 | "David\nLindquist","Jason\nTait","Lorin\nPersson"); 28 | $graph->xaxis->SetTickLabels($lbl); 29 | 30 | // Label align for X-axis 31 | $graph->xaxis->SetLabelAlign('right','center','right'); 32 | 33 | // Label align for Y-axis 34 | $graph->yaxis->SetLabelAlign('center','bottom'); 35 | 36 | // Titles 37 | $graph->title->Set('Year Married'); 38 | 39 | // Create a bar pot 40 | $bplot = new BarPlot($datay); 41 | $bplot->SetFillColor("orange"); 42 | $bplot->SetWidth(0.5); 43 | $bplot->SetYMin(1990); 44 | 45 | $graph->Add($bplot); 46 | 47 | $graph->Stroke(); 48 | ?> 49 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/impulsex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 9 | 10 | $graph->SetShadow(); 11 | $graph->img->SetMargin(40,40,40,40); 12 | 13 | $graph->title->Set("Simple mpuls plot"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | $sp1 = new ScatterPlot($datay); 17 | $sp1->mark->SetType(MARK_SQUARE); 18 | $sp1->SetImpuls(); 19 | 20 | $graph->Add($sp1); 21 | $graph->Stroke(); 22 | 23 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/impulsex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 9 | 10 | $graph->SetShadow(); 11 | $graph->img->SetMargin(40,40,40,40); 12 | 13 | $graph->title->Set("Impuls plot, variant 2"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | $graph->xaxis->title->Set("Impuls respons"); 16 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 17 | 18 | $sp1 = new ScatterPlot($datay);//,$datax); 19 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 20 | $sp1->mark->SetFillColor("red"); 21 | $sp1->mark->SetWidth(4); 22 | $sp1->SetImpuls(); 23 | $sp1->SetColor("blue"); 24 | $sp1->SetWeight(3); 25 | 26 | $graph->Add($sp1); 27 | $graph->Stroke(); 28 | 29 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/lightbluedarkblue400x300grad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/lightbluedarkblue400x300grad.png -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/linegraceex.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 9 | 10 | $graph->img->SetAntiAliasing(); 11 | $graph->SetScale("textlin"); 12 | $graph->SetShadow(); 13 | $graph->title->Set("Example of 10% top/bottom grace"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | // Add 10% grace to top and bottom of plot 17 | $graph->yscale->SetGrace(10,10); 18 | 19 | $p1 = new LinePlot($datay); 20 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 21 | $p1->mark->SetFillColor("red"); 22 | $p1->mark->SetWidth(4); 23 | $p1->SetColor("blue"); 24 | $p1->SetCenter(); 25 | $graph->Add($p1); 26 | 27 | $graph->Stroke(); 28 | 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/lineiconex1.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 15 | $graph->SetScale("textlin"); 16 | 17 | $graph->title->Set('Adding an icon ("tux") in the background'); 18 | $graph->title->SetFont(FF_ARIAL,FS_NORMAL,12); 19 | 20 | //$graph->SetBackgroundGradient('red','blue'); 21 | 22 | $graph->xaxis->SetPos('min'); 23 | 24 | $p1 = new LinePlot($datay); 25 | $p1->SetColor("blue"); 26 | $p1->SetFillGradient('yellow@0.4','red@0.4'); 27 | 28 | $p2 = new LinePlot($datay2); 29 | $p2->SetColor("black"); 30 | $p2->SetFillGradient('green@0.4','white'); 31 | 32 | $p3 = new LinePlot($datay3); 33 | $p3->SetColor("blue"); 34 | $p3->SetFillGradient('navy@0.4','white@0.4'); 35 | 36 | $graph->Add($p1); 37 | $graph->Add($p2); 38 | $graph->Add($p3); 39 | 40 | $icon = new IconPlot('penguin.png',0.2,0.3,1,30); 41 | $icon->SetAnchor('center','center'); 42 | $graph->Add($icon); 43 | 44 | // Output line 45 | $graph->Stroke(); 46 | 47 | ?> 48 | 49 | 50 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/lineiconex2.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,40,20,30); 12 | $graph->SetScale("textlin"); 13 | 14 | $graph->title->Set('Adding a country flag as a an icon'); 15 | 16 | $p1 = new LinePlot($datay); 17 | $p1->SetColor("blue"); 18 | $p1->SetFillGradient('yellow@0.4','red@0.4'); 19 | 20 | $graph->Add($p1); 21 | 22 | $icon = new IconPlot(); 23 | $icon->SetCountryFlag('iceland',50,30,1.5,40,3); 24 | $icon->SetAnchor('left','top'); 25 | $graph->Add($icon); 26 | 27 | // Output line 28 | $graph->Stroke(); 29 | 30 | ?> 31 | 32 | 33 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/listallflags.php: -------------------------------------------------------------------------------- 1 | \n"; 14 | $cols=0; 15 | while( list($key,$val) = each($flags->iCountryNameMap) ) { 16 | 17 | echo '
'; 18 | echo "$key
idx=$val\n"; 19 | 20 | if( ++$cols == 5 ) { 21 | echo "\n"; 22 | $cols=0; 23 | } 24 | } 25 | 26 | echo ""; 27 | 28 | ?> 29 | 30 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/listallflags_helper.php: -------------------------------------------------------------------------------- 1 | GetImgByIdx($idx); 22 | header ("Content-type: image/png"); 23 | ImagePng ($img); 24 | 25 | ?> 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/manscaleex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin",3,35); 9 | $graph->yscale->ticks->Set(7,2); 10 | 11 | $graph->title->Set('Manual scale, manual ticks'); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $line = new LinePlot($ydata); 15 | $graph->Add($line); 16 | 17 | // Output graph 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/manscaleex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin",3,35); 9 | 10 | $graph->title->Set('Manual scale, exact limits'); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $line = new LinePlot($ydata); 14 | $graph->Add($line); 15 | 16 | // Output graph 17 | $graph->Stroke(); 18 | 19 | ?> 20 | 21 | 22 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/manscaleex3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin",3,35); 9 | $graph->SetTickDensity(TICKD_DENSE); 10 | $graph->yscale->SetAutoTicks(); 11 | 12 | $graph->title->Set('Manual scale, auto ticks'); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | $line = new LinePlot($ydata); 16 | $graph->Add($line); 17 | 18 | // Output graph 19 | $graph->Stroke(); 20 | 21 | ?> 22 | 23 | 24 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/manscaleex4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin",3,35); 9 | $graph->yscale->SetAutoTicks(); 10 | 11 | $graph->title->Set('Manual scale, allow adjustment'); 12 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 13 | 14 | $line = new LinePlot($ydata); 15 | $graph->Add($line); 16 | 17 | // Output graph 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/multconstganttex01.php: -------------------------------------------------------------------------------- 1 | title->Set("Example with multiple constrains"); 9 | 10 | $bar1 = new GanttBar(0, "Label 1", "2003-06-08", "2003-06-12"); 11 | $bar2 = new GanttBar(1, "Label 2", "2003-06-16", "2003-06-19"); 12 | $bar3 = new GanttBar(2, "Label 3", "2003-06-15", "2003-06-21"); 13 | 14 | //create constraints 15 | $bar1->SetConstrain(1, CONSTRAIN_ENDSTART); 16 | $bar1->SetConstrain(2, CONSTRAIN_ENDSTART); 17 | 18 | // Setup scale 19 | $graph->ShowHeaders(/*GANTT_HYEAR | GANTT_HMONTH |*/ GANTT_HDAY | GANTT_HWEEK); 20 | $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); 21 | 22 | // Add the specified activities 23 | $graph->Add($bar1); 24 | $graph->Add($bar2); 25 | $graph->Add($bar3); 26 | 27 | // .. and stroke the graph 28 | $graph->Stroke(); 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/mulyaxisex1.php: -------------------------------------------------------------------------------- 1 | SetMargin(40,150,40,30); 16 | $graph->SetMarginColor('white'); 17 | 18 | $graph->SetScale('intlin'); 19 | $graph->title->Set('Using multiple Y-axis'); 20 | $graph->title->SetFont(FF_ARIAL,FS_NORMAL,14); 21 | 22 | $graph->SetYScale(0,'lin'); 23 | $graph->SetYScale(1,'lin'); 24 | $graph->SetYScale(2,'lin'); 25 | 26 | $p1 = new LinePlot($datay); 27 | $graph->Add($p1); 28 | 29 | $p2 = new LinePlot($datay2); 30 | $p2->SetColor('teal'); 31 | $graph->AddY(0,$p2); 32 | $graph->ynaxis[0]->SetColor('teal'); 33 | 34 | $p3 = new LinePlot($datay3); 35 | $p3->SetColor('red'); 36 | $graph->AddY(1,$p3); 37 | $graph->ynaxis[1]->SetColor('red'); 38 | 39 | $p4 = new LinePlot($datay4); 40 | $p4->SetColor('blue'); 41 | $graph->AddY(2,$p4); 42 | $graph->ynaxis[2]->SetColor('blue'); 43 | 44 | // Output line 45 | $graph->Stroke(); 46 | ?> 47 | 48 | 49 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/negbarvalueex01.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(60,30,40,40); 10 | $graph->SetScale("textlin"); 11 | $graph->SetShadow(); 12 | 13 | // Create a bar pot 14 | $bplot = new BarPlot($datay); 15 | $bplot->SetFillColor("orange"); 16 | 17 | // DIsplay value at top of each bar 18 | $bplot->value->Show(); 19 | $bplot->SetShadow(); 20 | 21 | $graph->Add($bplot); 22 | 23 | // Position the scale at the min of the other axis 24 | $graph->xaxis->SetPos("min"); 25 | 26 | // Add 10% more space at top and bottom of graph 27 | $graph->yscale->SetGrace(10,10); 28 | 29 | $graph->xaxis->title->Set("X-title"); 30 | $graph->yaxis->title->Set("Y-title"); 31 | 32 | $graph->title->SetFont(FF_VERDANA,FS_NORMAL,12); 33 | $graph->title->Set("Example of bar plot with absolute labels"); 34 | 35 | $graph->yaxis->title->SetFont(FF_ARIAL,FS_NORMAL,16); 36 | 37 | 38 | $graph->Stroke(); 39 | ?> 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/partiallyfilledlineex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetShadow(true); 13 | $graph->SetMarginColor("lightblue"); 14 | 15 | // Setup format for legend 16 | $graph->legend->SetFillColor("antiquewhite"); 17 | $graph->legend->SetShadow(true); 18 | 19 | // Setup title 20 | $graph->title->Set("Filled Area Example"); 21 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 22 | 23 | // Setup semi-filled line plot 24 | $lineplot = new LinePlot($ydata); 25 | $lineplot->SetLegend("Semi-filled\nLineplot"); 26 | 27 | // Set line color 28 | $lineplot->SetColor("black"); 29 | 30 | // Setup the two areas to be filled 31 | $lineplot->AddArea(2,5,LP_AREA_FILLED,"red"); 32 | $lineplot->AddArea(6,8,LP_AREA_FILLED,"green"); 33 | 34 | // Display the marks on the lines 35 | $lineplot->mark->SetType(MARK_DIAMOND); 36 | $lineplot->mark->SetSize(8); 37 | $lineplot->mark->Show(); 38 | 39 | // add plot to the graph 40 | $graph->Add($lineplot); 41 | 42 | // display graph 43 | $graph->Stroke(); 44 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/penguin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/penguin.png -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3d_csimex1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 14 | 15 | // Set A title for the plot 16 | $graph->title->Set("3D Pie Client side image map"); 17 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 18 | 19 | // Create 20 | $p1 = new PiePlot3D($data); 21 | $p1->SetLegends(array("Jan (%d)","Feb","Mar","Apr","May","Jun","Jul")); 22 | $targ=array("pie3d_csimex1.php?v=1","pie3d_csimex1.php?v=2","pie3d_csimex1.php?v=3", 23 | "pie3d_csimex1.php?v=4","pie3d_csimex1.php?v=5","pie3d_csimex1.php?v=6"); 24 | $alts=array("val=%d","val=%d","val=%d","val=%d","val=%d","val=%d"); 25 | $p1->SetCSIMTargets($targ,$alts); 26 | 27 | // Use absolute labels 28 | $p1->SetLabelType(1); 29 | $p1->value->SetFormat("%d kr"); 30 | 31 | // Move the pie slightly to the left 32 | $p1->SetCenter(0.4,0.5); 33 | 34 | $graph->Add($p1); 35 | 36 | 37 | // Send back the HTML page which will call this script again 38 | // to retrieve the image. 39 | $graph->StrokeCSIM('pie3d_csimex1.php'); 40 | 41 | ?> 42 | 43 | 44 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3dex1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | // Set A title for the plot 14 | $graph->title->Set("Example 1 3D Pie plot"); 15 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 16 | $graph->title->SetColor("darkblue"); 17 | $graph->legend->Pos(0.1,0.2); 18 | 19 | // Create pie plot 20 | $p1 = new PiePlot3d($data); 21 | $p1->SetTheme("sand"); 22 | $p1->SetCenter(0.4); 23 | $p1->SetAngle(30); 24 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,12); 25 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct")); 26 | 27 | $graph->Add($p1); 28 | $graph->Stroke(); 29 | 30 | ?> 31 | 32 | 33 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3dex2.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | 14 | // Set A title for the plot 15 | $graph->title->Set("Example 2 3D Pie plot"); 16 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 17 | $graph->title->SetColor("darkblue"); 18 | $graph->legend->Pos(0.1,0.2); 19 | 20 | // Create 3D pie plot 21 | $p1 = new PiePlot3d($data); 22 | $p1->SetTheme("sand"); 23 | $p1->SetCenter(0.4); 24 | $p1->SetSize(0.4); 25 | $p1->SetHeight(5); 26 | 27 | // Adjust projection angle 28 | $p1->SetAngle(45); 29 | 30 | // You can explode several slices by specifying the explode 31 | // distance for some slices in an array 32 | $p1->Explode(array(0,40,0,30)); 33 | 34 | // As a shortcut you can easily explode one numbered slice with 35 | // $p1->ExplodeSlice(3); 36 | 37 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,10); 38 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct")); 39 | 40 | $graph->Add($p1); 41 | $graph->Stroke(); 42 | 43 | ?> 44 | 45 | 46 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3dex3.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | // Set A title for the plot 14 | $graph->title->Set("Example 3 3D Pie plot"); 15 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 16 | $graph->title->SetColor("darkblue"); 17 | $graph->legend->Pos(0.1,0.2); 18 | 19 | // Create 3D pie plot 20 | $p1 = new PiePlot3d($data); 21 | $p1->SetTheme("sand"); 22 | $p1->SetCenter(0.4); 23 | $p1->SetSize(80); 24 | 25 | // Adjust projection angle 26 | $p1->SetAngle(45); 27 | 28 | // As a shortcut you can easily explode one numbered slice with 29 | $p1->ExplodeSlice(3); 30 | 31 | // Setup the slice values 32 | $p1->value->SetFont(FF_ARIAL,FS_BOLD,11); 33 | $p1->value->SetColor("navy"); 34 | 35 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct")); 36 | 37 | $graph->Add($p1); 38 | $graph->Stroke(); 39 | 40 | ?> 41 | 42 | 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3dex4.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | // Set A title for the plot 14 | $graph->title->Set("Example 4 3D Pie plot"); 15 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 16 | $graph->title->SetColor("darkblue"); 17 | $graph->legend->Pos(0.1,0.2); 18 | 19 | // Create 3D pie plot 20 | $p1 = new PiePlot3d($data); 21 | $p1->SetTheme("sand"); 22 | $p1->SetCenter(0.4); 23 | $p1->SetSize(80); 24 | 25 | // Adjust projection angle 26 | $p1->SetAngle(45); 27 | 28 | // Adjsut angle for first slice 29 | $p1->SetStartAngle(45); 30 | 31 | // As a shortcut you can easily explode one numbered slice with 32 | $p1->ExplodeSlice(3); 33 | 34 | // Setup slice values 35 | $p1->value->SetFont(FF_ARIAL,FS_BOLD,11); 36 | $p1->value->SetColor("navy"); 37 | 38 | 39 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct")); 40 | 41 | $graph->Add($p1); 42 | $graph->Stroke(); 43 | 44 | ?> 45 | 46 | 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie3dex5.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | // Set A title for the plot 14 | $graph->title->Set("Example 5 3D Pie plot"); 15 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 16 | $graph->title->SetColor("darkblue"); 17 | $graph->legend->Pos(0.1,0.2); 18 | 19 | // Create 3D pie plot 20 | $p1 = new PiePlot3d($data); 21 | $p1->SetTheme("sand"); 22 | $p1->SetCenter(0.4); 23 | $p1->SetSize(80); 24 | 25 | // Adjust projection angle 26 | $p1->SetAngle(45); 27 | 28 | // Adjsut angle for first slice 29 | $p1->SetStartAngle(45); 30 | 31 | // Display the slice values 32 | $p1->value->SetFont(FF_ARIAL,FS_BOLD,11); 33 | $p1->value->SetColor("navy"); 34 | 35 | // Add colored edges to the 3D pie 36 | // NOTE: You can't have exploded slices with edges! 37 | $p1->SetEdge("navy"); 38 | 39 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct")); 40 | 41 | $graph->Add($p1); 42 | $graph->Stroke(); 43 | 44 | ?> 45 | 46 | 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pie_csimex1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Set A title for the plot 13 | $graph->title->Set("Client side image map"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | // Create 17 | $p1 = new PiePlot($data); 18 | $p1->SetCenter(0.4,0.5); 19 | 20 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul")); 21 | $targ=array("pie_csimex1.php#1","pie_csimex1.php#2","pie_csimex1.php#3", 22 | "pie_csimex1.php#4","pie_csimex1.php#5","pie_csimex1.php#6"); 23 | $alts=array("val=%d","val=%d","val=%d","val=%d","val=%d","val=%d"); 24 | $p1->SetCSIMTargets($targ,$alts); 25 | 26 | $graph->Add($p1); 27 | 28 | 29 | // Send back the HTML page which will call this script again 30 | // to retrieve the image. 31 | $graph->StrokeCSIM('pie_csimex1.php'); 32 | 33 | ?> 34 | 35 | 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/piecex1.php: -------------------------------------------------------------------------------- 1 | title->Set("Pie plot with center circle"); 15 | $graph->title->SetFont(FF_COMIC,FS_BOLD,14); 16 | $graph->title->SetMargin(8); // Add a little bit more margin from the top 17 | 18 | // Create the pie plot 19 | $p1 = new PiePlotC($data); 20 | 21 | // Set size of pie 22 | $p1->SetSize(0.32); 23 | 24 | // Label font and color setup 25 | $p1->value->SetFont(FF_ARIAL,FS_BOLD,10); 26 | $p1->value->SetColor('black'); 27 | 28 | // Setup the title on the center circle 29 | $p1->midtitle->Set("Test mid\nRow 1\nRow 2"); 30 | $p1->midtitle->SetFont(FF_COMIC,FS_NORMAL,10); 31 | 32 | // Set color for mid circle 33 | $p1->SetMidColor('yellow'); 34 | 35 | // Use percentage values in the legends values (This is also the default) 36 | $p1->SetLabelType(PIE_VALUE_PER); 37 | 38 | // Add plot to pie graph 39 | $graph->Add($p1); 40 | 41 | // .. and send the image on it's marry way to the browser 42 | $graph->Stroke(); 43 | 44 | ?> 45 | 46 | 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Set A title for the plot 13 | $graph->title->Set("Example 1 Pie plot"); 14 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,14); 15 | $graph->title->SetColor("brown"); 16 | 17 | // Create pie plot 18 | $p1 = new PiePlot($data); 19 | //$p1->SetSliceColors(array("red","blue","yellow","green")); 20 | $p1->SetTheme("earth"); 21 | 22 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,10); 23 | // Set how many pixels each slice should explode 24 | $p1->Explode(array(0,15,15,25,15)); 25 | 26 | 27 | $graph->Add($p1); 28 | $graph->Stroke(); 29 | 30 | ?> 31 | 32 | 33 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex2.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Set A title for the plot 13 | $graph->title->Set("Example 2 Pie plot"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | // Create 17 | $p1 = new PiePlot($data); 18 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul")); 19 | $graph->Add($p1); 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex3.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Set A title for the plot 13 | $graph->title->Set("Multiple - Pie plot"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | // Create plots 17 | $size=0.13; 18 | $p1 = new PiePlot($data); 19 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May")); 20 | $p1->SetSize($size); 21 | $p1->SetCenter(0.25,0.32); 22 | $p1->value->SetFont(FF_FONT0); 23 | $p1->title->Set("2001"); 24 | 25 | $p2 = new PiePlot($data); 26 | $p2->SetSize($size); 27 | $p2->SetCenter(0.65,0.32); 28 | $p2->value->SetFont(FF_FONT0); 29 | $p2->title->Set("2002"); 30 | 31 | $p3 = new PiePlot($data); 32 | $p3->SetSize($size); 33 | $p3->SetCenter(0.25,0.75); 34 | $p3->value->SetFont(FF_FONT0); 35 | $p3->title->Set("2003"); 36 | 37 | $p4 = new PiePlot($data); 38 | $p4->SetSize($size); 39 | $p4->SetCenter(0.65,0.75); 40 | $p4->value->SetFont(FF_FONT0); 41 | $p4->title->Set("2004"); 42 | 43 | $graph->Add($p1); 44 | $graph->Add($p2); 45 | $graph->Add($p3); 46 | $graph->Add($p4); 47 | 48 | $graph->Stroke(); 49 | 50 | ?> 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex4.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 9 | 10 | $graph->title->Set("Example 4 of pie plot"); 11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 12 | 13 | $p1 = new PiePlot($data); 14 | $p1->value->SetFont(FF_FONT1,FS_BOLD); 15 | $p1->value->SetColor("darkred"); 16 | $p1->SetSize(0.3); 17 | $p1->SetCenter(0.4); 18 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May")); 19 | $graph->Add($p1); 20 | 21 | $graph->Stroke(); 22 | 23 | ?> 24 | 25 | 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex5.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | // Setup graph title 12 | $graph->title->Set("Example 5 of pie plot"); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | // Create pie plot 16 | $p1 = new PiePlot($data); 17 | $p1->value->SetFont(FF_VERDANA,FS_BOLD); 18 | $p1->value->SetColor("darkred"); 19 | $p1->SetSize(0.3); 20 | $p1->SetCenter(0.4); 21 | $p1->SetLegends(array("Jan","Feb","Mar","Apr","May")); 22 | //$p1->SetStartAngle(M_PI/8); 23 | $p1->ExplodeSlice(3); 24 | 25 | $graph->Add($p1); 26 | 27 | $graph->Stroke(); 28 | 29 | ?> 30 | 31 | 32 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex6.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 11 | 12 | // Setup title 13 | $graph->title->Set("Example of pie plot with absolute labels"); 14 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 15 | 16 | // The pie plot 17 | $p1 = new PiePlot($data); 18 | 19 | // Move center of pie to the left to make better room 20 | // for the legend 21 | $p1->SetCenter(0.35,0.5); 22 | 23 | // No border 24 | $p1->ShowBorder(false); 25 | 26 | // Label font and color setup 27 | $p1->value->SetFont(FF_FONT1,FS_BOLD); 28 | $p1->value->SetColor("darkred"); 29 | 30 | // Use absolute values (type==1) 31 | $p1->SetLabelType(PIE_VALUE_ABS); 32 | 33 | // Label format 34 | $p1->value->SetFormat("$%d"); 35 | $p1->value->Show(); 36 | 37 | // Size of pie in fraction of the width of the graph 38 | $p1->SetSize(0.3); 39 | 40 | // Legends 41 | $p1->SetLegends(array("May ($%d)","June ($%d)","July ($%d)","Aug ($%d)")); 42 | $graph->legend->Pos(0.05,0.15); 43 | 44 | $graph->Add($p1); 45 | $graph->Stroke(); 46 | ?> 47 | 48 | 49 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex7.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 12 | 13 | // Setup title 14 | $graph->title->Set("Pie plot with absolute labels"); 15 | $graph->subtitle->Set('(With hidden 0 labels)'); 16 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 17 | 18 | // The pie plot 19 | $p1 = new PiePlot($data); 20 | 21 | 22 | // Move center of pie to the left to make better room 23 | // for the legend 24 | $p1->SetCenter(0.35,0.5); 25 | 26 | // No border 27 | $p1->ShowBorder(false); 28 | 29 | // Label font and color setup 30 | $p1->value->SetFont(FF_FONT1,FS_BOLD); 31 | $p1->value->SetColor("darkred"); 32 | 33 | // Use absolute values (type==1) 34 | $p1->SetLabelType(PIE_VALUE_ABS); 35 | 36 | // Label format 37 | $p1->value->SetFormat("$%d"); 38 | $p1->value->HideZero(); 39 | $p1->value->Show(); 40 | 41 | // Size of pie in fraction of the width of the graph 42 | $p1->SetSize(0.3); 43 | 44 | // Legends 45 | $p1->SetLegends(array("May ($%d)","June ($%d)","July ($%d)","Aug ($%d)")); 46 | $graph->legend->Pos(0.05,0.2); 47 | 48 | $graph->Add($p1); 49 | $graph->Stroke(); 50 | ?> 51 | 52 | 53 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex8.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | // Title setup 12 | $graph->title->Set("Adjusting the label pos"); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | // Setup the pie plot 16 | $p1 = new PiePlot($data); 17 | 18 | // Adjust size and position of plot 19 | $p1->SetSize(0.4); 20 | $p1->SetCenter(0.5,0.52); 21 | 22 | // Setup slice labels and move them into the plot 23 | $p1->value->SetFont(FF_FONT1,FS_BOLD); 24 | $p1->value->SetColor("darkred"); 25 | $p1->SetLabelPos(0.6); 26 | 27 | // Finally add the plot 28 | $graph->Add($p1); 29 | 30 | // ... and stroke it 31 | $graph->Stroke(); 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pieex9.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 10 | 11 | // Title setup 12 | $graph->title->Set("Exploding all slices"); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | // Setup the pie plot 16 | $p1 = new PiePlot($data); 17 | 18 | // Adjust size and position of plot 19 | $p1->SetSize(0.35); 20 | $p1->SetCenter(0.5,0.52); 21 | 22 | // Setup slice labels and move them into the plot 23 | $p1->value->SetFont(FF_FONT1,FS_BOLD); 24 | $p1->value->SetColor("darkred"); 25 | $p1->SetLabelPos(0.65); 26 | 27 | // Explode all slices 28 | $p1->ExplodeAll(10); 29 | 30 | // Add drop shadow 31 | $p1->SetShadow(); 32 | 33 | // Finally add the plot 34 | $graph->Add($p1); 35 | 36 | // ... and stroke it 37 | $graph->Stroke(); 38 | 39 | ?> 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pielabelsex1.php: -------------------------------------------------------------------------------- 1 | title->Set("Label guide lines"); 12 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,12); 13 | $graph->title->SetColor("darkblue"); 14 | $graph->legend->Pos(0.1,0.2); 15 | 16 | 17 | // Create pie plot 18 | $p1 = new PiePlot($data); 19 | $p1->SetCenter(0.5,0.55); 20 | $p1->SetSize(0.3); 21 | 22 | // Enable and set policy for guide-lines 23 | $p1->SetGuideLines(); 24 | $p1->SetGuideLinesAdjust(1.4); 25 | 26 | // Setup the labels 27 | $p1->SetLabelType(PIE_VALUE_PER); 28 | $p1->value->Show(); 29 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,9); 30 | $p1->value->SetFormat('%2.1f%%'); 31 | 32 | // Add and stroke 33 | $graph->Add($p1); 34 | $graph->Stroke(); 35 | 36 | ?> 37 | 38 | 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pielabelsex2.php: -------------------------------------------------------------------------------- 1 | title->Set("Label guide lines"); 12 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,12); 13 | $graph->title->SetColor("darkblue"); 14 | $graph->legend->Pos(0.1,0.2); 15 | 16 | 17 | // Create pie plot 18 | $p1 = new PiePlot($data); 19 | $p1->SetCenter(0.5,0.55); 20 | $p1->SetSize(0.3); 21 | 22 | // Enable and set policy for guide-lines. Make labels line up vertically 23 | $p1->SetGuideLines(true,false); 24 | $p1->SetGuideLinesAdjust(1.5); 25 | 26 | // Setup the labels 27 | $p1->SetLabelType(PIE_VALUE_PER); 28 | $p1->value->Show(); 29 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,9); 30 | $p1->value->SetFormat('%2.1f%%'); 31 | 32 | // Add and stroke 33 | $graph->Add($p1); 34 | $graph->Stroke(); 35 | 36 | ?> 37 | 38 | 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pielabelsex3.php: -------------------------------------------------------------------------------- 1 | title->Set("Label guide lines"); 12 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,12); 13 | $graph->title->SetColor("darkblue"); 14 | $graph->legend->Pos(0.1,0.2); 15 | 16 | 17 | // Create pie plot 18 | $p1 = new PiePlot($data); 19 | $p1->SetCenter(0.5,0.55); 20 | $p1->SetSize(0.3); 21 | 22 | // Enable and set policy for guide-lines. Make labels line up vertically 23 | // and force guide lines to always beeing used 24 | $p1->SetGuideLines(true,false,true); 25 | $p1->SetGuideLinesAdjust(1.5); 26 | 27 | // Setup the labels 28 | $p1->SetLabelType(PIE_VALUE_PER); 29 | $p1->value->Show(); 30 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,9); 31 | $p1->value->SetFormat('%2.1f%%'); 32 | 33 | // Add and stroke 34 | $graph->Add($p1); 35 | $graph->Stroke(); 36 | 37 | ?> 38 | 39 | 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/pielabelsex4.php: -------------------------------------------------------------------------------- 1 | title->Set("Label guide lines"); 12 | $graph->title->SetFont(FF_VERDANA,FS_BOLD,12); 13 | $graph->title->SetColor("darkblue"); 14 | $graph->legend->Pos(0.1,0.2); 15 | 16 | 17 | // Create pie plot 18 | $p1 = new PiePlot($data); 19 | $p1->SetCenter(0.5,0.55); 20 | $p1->SetSize(0.3); 21 | 22 | // Enable and set policy for guide-lines. Make labels line up vertically 23 | $p1->SetGuideLines(true,false); 24 | $p1->SetGuideLinesAdjust(1.1); 25 | 26 | // Setup the labels 27 | $p1->SetLabelType(PIE_VALUE_PER); 28 | $p1->value->Show(); 29 | $p1->value->SetFont(FF_ARIAL,FS_NORMAL,9); 30 | $p1->value->SetFormat('%2.1f%%'); 31 | 32 | // Add and stroke 33 | $graph->Add($p1); 34 | $graph->Stroke(); 35 | 36 | ?> 37 | 38 | 39 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex0-180.php: -------------------------------------------------------------------------------- 1 | SetScale('lin'); 18 | $graph->SetMargin(35,35,25,25); 19 | $graph->SetType(POLAR_180); 20 | 21 | $p = new PolarPlot($data); 22 | $p->SetFillColor('lightblue@0.5'); 23 | $graph->Add($p); 24 | 25 | $graph->Stroke(); 26 | 27 | ?> 28 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex0.php: -------------------------------------------------------------------------------- 1 | SetScale('lin'); 18 | $graph->SetMargin(35,35,25,25); 19 | 20 | $p = new PolarPlot($data); 21 | $p->SetFillColor('lightblue@0.5'); 22 | $graph->Add($p); 23 | 24 | $graph->Stroke(); 25 | 26 | ?> 27 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex1.php: -------------------------------------------------------------------------------- 1 | SetScale('lin'); 18 | $graph->SetType(POLAR_180); 19 | //$graph->SetAngle(90); 20 | //$graph->SetMargin(30-150,30-150,30+150,30+150); 21 | $graph->Set90AndMargin(40,40,40,40); 22 | //$graph->axis->SetLabelAlign('right','center'); 23 | 24 | $p = new PolarPlot($data); 25 | $p->SetLegend("Test"); 26 | $graph->Add($p); 27 | 28 | $graph->Stroke(); 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex2.php: -------------------------------------------------------------------------------- 1 | SetScale('lin'); 18 | 19 | $graph->title->Set('Polar plot #2'); 20 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 21 | $graph->title->SetColor('navy'); 22 | 23 | // Hide last labels on the Radius axis 24 | // They intersect with the box otherwise 25 | $graph->axis->HideLastTickLabel(); 26 | 27 | $p = new PolarPlot($data); 28 | $p->SetFillColor('lightred@0.5'); 29 | 30 | $graph->Add($p); 31 | 32 | $graph->Stroke(); 33 | 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex3-lin.php: -------------------------------------------------------------------------------- 1 | SetScale('lin',200); 18 | $graph->SetType(POLAR_180); 19 | 20 | $graph->title->Set('Polar plot #3'); 21 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 22 | $graph->title->SetColor('navy'); 23 | 24 | $graph->axis->ShowGrid(true,false); 25 | 26 | $p = new PolarPlot($data); 27 | $p->SetFillColor('lightred@0.5'); 28 | 29 | $graph->Add($p); 30 | 31 | $graph->Stroke(); 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex3.php: -------------------------------------------------------------------------------- 1 | SetScale('log',100); 18 | $graph->SetType(POLAR_180); 19 | 20 | $graph->title->Set('Polar plot #3'); 21 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 22 | $graph->title->SetColor('navy'); 23 | 24 | $graph->axis->ShowGrid(true,false); 25 | 26 | $p = new PolarPlot($data); 27 | $p->SetFillColor('lightred@0.5'); 28 | 29 | $graph->Add($p); 30 | 31 | $graph->Stroke(); 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex4.php: -------------------------------------------------------------------------------- 1 | SetScale('log'); 18 | 19 | $graph->title->Set('Polar plot #4'); 20 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 21 | $graph->title->SetColor('navy'); 22 | 23 | // Hide last labels on the Radius axis 24 | // They intersect with the box otherwise 25 | $graph->axis->HideLastTickLabel(); 26 | 27 | $p = new PolarPlot($data); 28 | $p->SetFillColor('lightred@0.5'); 29 | 30 | $graph->Add($p); 31 | 32 | $graph->Stroke(); 33 | 34 | ?> 35 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex5.php: -------------------------------------------------------------------------------- 1 | SetScale('log'); 18 | 19 | // Show both major and minor grid lines 20 | $graph->axis->ShowGrid(true,true); 21 | 22 | $graph->title->Set('Polar plot #5'); 23 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 24 | $graph->title->SetColor('navy'); 25 | 26 | // Hide last labels on the Radius axis 27 | // They intersect with the box otherwise 28 | $graph->axis->HideLastTickLabel(); 29 | 30 | $p = new PolarPlot($data); 31 | $p->SetFillColor('lightred@0.5'); 32 | 33 | $graph->Add($p); 34 | 35 | $graph->Stroke(); 36 | 37 | ?> 38 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/polarex6.php: -------------------------------------------------------------------------------- 1 | SetScale('log'); 18 | $graph->SetType(POLAR_180); 19 | 20 | // Show both major and minor grid lines 21 | $graph->axis->ShowGrid(true,true); 22 | 23 | $graph->title->Set('Polar plot #6'); 24 | $graph->title->SetFont(FF_FONT2,FS_BOLD); 25 | $graph->title->SetColor('navy'); 26 | 27 | 28 | $p = new PolarPlot($data); 29 | $p->SetFillColor('lightred@0.5'); 30 | 31 | $graph->Add($p); 32 | 33 | $graph->Stroke(); 34 | 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex1.php: -------------------------------------------------------------------------------- 1 | Add($plot); 14 | $graph->Stroke(); 15 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex2.php: -------------------------------------------------------------------------------- 1 | title->Set('Weekly goals'); 12 | $graph->subtitle->Set('Year 2003'); 13 | 14 | $plot = new RadarPlot($data); 15 | $plot->SetFillColor('lightred'); 16 | $graph->SetSize(0.6); 17 | $graph->SetPos(0.5,0.6); 18 | // Add the plot and display the graph 19 | $graph->Add($plot); 20 | $graph->Stroke(); 21 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex3.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 13 | $graph->SetTitles($titles); 14 | 15 | $plot = new RadarPlot($data); 16 | $plot->SetFillColor('lightblue'); 17 | 18 | // Add the plot and display the graph 19 | $graph->Add($plot); 20 | $graph->Stroke(); 21 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex4.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 13 | $graph->SetTitles($titles); 14 | 15 | // Add grid lines 16 | $graph->grid->Show(); 17 | $graph->grid->SetLineStyle('dotted'); 18 | 19 | $plot = new RadarPlot($data); 20 | $plot->SetFillColor('lightblue'); 21 | 22 | // Add the plot and display the graph 23 | $graph->Add($plot); 24 | $graph->Stroke(); 25 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex5.php: -------------------------------------------------------------------------------- 1 | GetShortMonth(); 13 | $graph->SetTitles($titles); 14 | 15 | // Add grid lines 16 | $graph->grid->Show(); 17 | $graph->grid->SetColor('darkred'); 18 | $graph->grid->SetLineStyle('dotted'); 19 | 20 | $plot = new RadarPlot($data); 21 | $plot->SetFillColor('lightblue'); 22 | 23 | // Add the plot and display the graph 24 | $graph->Add($plot); 25 | $graph->Stroke(); 26 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex6.1.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 14 | 15 | // Create the titles for the axis 16 | $titles = $gDateLocale->GetShortMonth(); 17 | $graph->SetTitles($titles); 18 | $graph->SetColor('lightyellow'); 19 | 20 | // ADjust the position to make more room 21 | // for the legend 22 | $graph->SetCenter(0.4,0.55); 23 | $graph->SetSize(0.6); 24 | 25 | // Add grid lines 26 | $graph->grid->Show(); 27 | $graph->grid->SetColor('darkred'); 28 | $graph->grid->SetLineStyle('dotted'); 29 | 30 | $plot = new RadarPlot($data); 31 | $plot->SetFillColor('lightblue'); 32 | $plot->SetLegend("QA results"); 33 | 34 | $plot2 = new RadarPlot($data2); 35 | $plot2->SetLegend("Target"); 36 | $plot2->SetColor('red'); 37 | $plot2->SetFill(false); 38 | $plot2->SetLineWeight(2); 39 | 40 | 41 | // Add the plot and display the graph 42 | $graph->Add($plot); 43 | $graph->Add($plot2); 44 | $graph->Stroke(); 45 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex6.php: -------------------------------------------------------------------------------- 1 | SetShadow(); 13 | 14 | // Create the titles for the axis 15 | $titles = $gDateLocale->GetShortMonth(); 16 | $graph->SetTitles($titles); 17 | $graph->SetColor('lightyellow'); 18 | 19 | // ADjust the position to make more room 20 | // for the legend 21 | $graph->SetCenter(0.4,0.5); 22 | 23 | // Add grid lines 24 | $graph->grid->Show(); 25 | $graph->grid->SetColor('darkred'); 26 | $graph->grid->SetLineStyle('dotted'); 27 | 28 | $plot = new RadarPlot($data); 29 | $plot->SetFillColor('lightblue'); 30 | $plot->SetLegend("QA results"); 31 | 32 | // Add the plot and display the graph 33 | $graph->Add($plot); 34 | $graph->Stroke(); 35 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarex9.php: -------------------------------------------------------------------------------- 1 | title->Set("Accumulated PPM"); 11 | $graph->title->SetFont(FF_VERDANA,FS_NORMAL,12); 12 | 13 | $graph->subtitle->Set("(according to direction)"); 14 | $graph->subtitle->SetFont(FF_VERDANA,FS_ITALIC,10); 15 | 16 | 17 | $graph->SetTitles($titles); 18 | $graph->SetCenter(0.5,0.55); 19 | $graph->HideTickMarks(); 20 | $graph->SetColor('lightyellow'); 21 | $graph->axis->SetColor('darkgray@0.3'); 22 | $graph->grid->SetColor('darkgray@0.3'); 23 | $graph->grid->Show(); 24 | 25 | $graph->SetGridDepth(DEPTH_BACK); 26 | 27 | $plot = new RadarPlot($data); 28 | $plot->SetColor('red@0.2'); 29 | $plot->SetLineWeight(1); 30 | $plot->SetFillColor('red@0.7'); 31 | $graph->Add($plot); 32 | $graph->Stroke(); 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/radarmarkex1.php: -------------------------------------------------------------------------------- 1 | title->Set("Radar with marks"); 11 | $graph->title->SetFont(FF_VERDANA,FS_NORMAL,12); 12 | 13 | $graph->SetTitles($titles); 14 | $graph->SetCenter(0.5,0.55); 15 | $graph->HideTickMarks(); 16 | $graph->SetColor('lightgreen@0.7'); 17 | $graph->axis->SetColor('darkgray'); 18 | $graph->grid->SetColor('darkgray'); 19 | $graph->grid->Show(); 20 | 21 | $graph->axis->title->SetFont(FF_ARIAL,FS_NORMAL,12); 22 | $graph->axis->title->SetMargin(5); 23 | $graph->SetGridDepth(DEPTH_BACK); 24 | $graph->SetSize(0.6); 25 | 26 | $plot = new RadarPlot($data); 27 | $plot->SetColor('red@0.2'); 28 | $plot->SetLineWeight(1); 29 | $plot->SetFillColor('red@0.7'); 30 | 31 | $plot->mark->SetType(MARK_IMG_SBALL,'red'); 32 | 33 | $graph->Add($plot); 34 | $graph->Stroke(); 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotateex1.php: -------------------------------------------------------------------------------- 1 | SetAngle(40); 10 | $graph->img->SetMargin(80,80,80,80); 11 | $graph->SetScale("textlin"); 12 | $graph->SetY2Scale("lin"); 13 | $graph->SetShadow(); 14 | 15 | // Create the linear plot 16 | $lineplot=new LinePlot($ydata); 17 | $lineplot2=new LinePlot($y2data); 18 | 19 | // Add the plot to the graph 20 | $graph->Add($lineplot); 21 | $graph->AddY2($lineplot2); 22 | $lineplot2->SetColor("orange"); 23 | $lineplot2->SetWeight(2); 24 | $graph->y2axis->SetColor("orange"); 25 | 26 | $graph->title->Set("Example 1 rotated graph (40 degree)"); 27 | $graph->legend->Pos(0.05,0.1,"right","top"); 28 | 29 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 30 | $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); 31 | $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); 32 | 33 | $lineplot->SetColor("blue"); 34 | $lineplot->SetWeight(2); 35 | 36 | $lineplot2->SetColor("orange"); 37 | $lineplot2->SetWeight(2); 38 | 39 | $graph->yaxis->SetColor("blue"); 40 | 41 | $lineplot->SetLegend("Plot 1"); 42 | $lineplot2->SetLegend("Plot 2"); 43 | 44 | // Display the graph 45 | $graph->Stroke(); 46 | ?> 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex0.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $line = new LinePlot($ydata); 12 | $line->SetLegend('2002'); 13 | $line->SetColor('darkred'); 14 | $line->SetWeight(2); 15 | $graph->Add($line); 16 | 17 | // Output graph 18 | $graph->Stroke(); 19 | 20 | ?> 21 | 22 | 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex1.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $graph->img->SetAngle(45); 12 | 13 | $line = new LinePlot($ydata); 14 | $line->SetLegend('2002'); 15 | $line->SetColor('darkred'); 16 | $line->SetWeight(2); 17 | $graph->Add($line); 18 | 19 | // Output graph 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex2.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $graph->img->SetAngle(90); 12 | 13 | $line = new LinePlot($ydata); 14 | $line->SetLegend('2002'); 15 | $line->SetColor('darkred'); 16 | $line->SetWeight(2); 17 | $graph->Add($line); 18 | 19 | // Output graph 20 | $graph->Stroke(); 21 | 22 | ?> 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex3.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $graph->img->SetAngle(45); 12 | $graph->img->SetCenter(floor(270/2),floor(170/2)); 13 | 14 | $line = new LinePlot($ydata); 15 | $line->SetLegend('2002'); 16 | $line->SetColor('darkred'); 17 | $line->SetWeight(2); 18 | $graph->Add($line); 19 | 20 | // Output graph 21 | $graph->Stroke(); 22 | 23 | ?> 24 | 25 | 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex4.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $graph->img->SetAngle(90); 12 | $graph->img->SetCenter(floor(270/2),floor(170/2)); 13 | 14 | $line = new LinePlot($ydata); 15 | $line->SetLegend('2002'); 16 | $line->SetColor('darkred'); 17 | $line->SetWeight(2); 18 | $graph->Add($line); 19 | 20 | // Output graph 21 | $graph->Stroke(); 22 | 23 | ?> 24 | 25 | 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/rotex5.php: -------------------------------------------------------------------------------- 1 | SetMargin(30,90,30,30); 9 | $graph->SetScale("textlin"); 10 | 11 | $graph->img->SetAngle(-30); 12 | $graph->img->SetCenter(30,170-30); 13 | 14 | $line = new LinePlot($ydata); 15 | $line->SetLegend('2002'); 16 | $line->SetColor('darkred'); 17 | $line->SetWeight(2); 18 | $graph->Add($line); 19 | 20 | // Output graph 21 | $graph->Stroke(); 22 | 23 | ?> 24 | 25 | 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/saab_95.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/saab_95.jpg -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterex1.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 10 | 11 | $graph->img->SetMargin(40,40,40,40); 12 | $graph->SetShadow(); 13 | 14 | $graph->title->Set("A simple scatter plot"); 15 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 16 | 17 | $sp1 = new ScatterPlot($datay,$datax); 18 | 19 | $graph->Add($sp1); 20 | $graph->Stroke(); 21 | 22 | ?> 23 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterex2.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 10 | 11 | $graph->img->SetMargin(40,40,40,40); 12 | $graph->SetShadow(); 13 | 14 | $graph->title->Set("A simple scatter plot"); 15 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 16 | 17 | $sp1 = new ScatterPlot($datay,$datax); 18 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 19 | $sp1->mark->SetFillColor("red"); 20 | $sp1->mark->SetWidth(8); 21 | 22 | $graph->Add($sp1); 23 | $graph->Stroke(); 24 | 25 | ?> 26 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterlinkex1.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,40); 9 | $graph->img->SetAntiAliasing(); 10 | $graph->SetScale("linlin"); 11 | $graph->SetShadow(); 12 | $graph->title->Set("Linked Scatter plot ex1"); 13 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 14 | 15 | $sp1 = new ScatterPlot($datay,$datax); 16 | $sp1->SetLinkPoints(true,"red",2); 17 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 18 | $sp1->mark->SetFillColor("navy"); 19 | $sp1->mark->SetWidth(3); 20 | 21 | $graph->Add($sp1); 22 | $graph->Stroke(); 23 | 24 | ?> 25 | 26 | 27 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterlinkex2.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 17 | 18 | $graph->img->SetMargin(40,40,40,40); 19 | 20 | $graph->SetShadow(); 21 | $graph->title->Set("Linked scatter plot"); 22 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 23 | 24 | // 10% top and bottom grace 25 | $graph->yscale->SetGrace(5,5); 26 | $graph->xscale->SetGrace(1,1); 27 | 28 | $sp1 = new ScatterPlot($datay,$datax); 29 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 30 | $sp1->mark->SetFillColor("red"); 31 | $sp1->SetColor("blue"); 32 | 33 | //$sp1->SetWeight(3); 34 | $sp1->mark->SetWidth(4); 35 | $sp1->SetLinkPoints(); 36 | 37 | $graph->Add($sp1); 38 | 39 | $graph->Stroke(); 40 | 41 | ?> 42 | 43 | 44 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterlinkex3.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 16 | $graph->SetShadow(); 17 | $graph->SetAxisStyle(AXSTYLE_BOXOUT); 18 | 19 | $graph->img->SetMargin(50,50,60,40); 20 | 21 | $graph->title->Set("Linked scatter plot"); 22 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 23 | $graph->subtitle->Set("(BOXOUT Axis style)"); 24 | $graph->subtitle->SetFont(FF_FONT1,FS_NORMAL); 25 | 26 | 27 | // 10% top and bottom grace 28 | $graph->yscale->SetGrace(5,5); 29 | $graph->xscale->SetGrace(1,1); 30 | 31 | $sp1 = new ScatterPlot($datay,$datax); 32 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 33 | $sp1->mark->SetFillColor("red"); 34 | $sp1->SetColor("blue"); 35 | 36 | //$sp1->SetWeight(3); 37 | $sp1->mark->SetWidth(4); 38 | $sp1->SetLinkPoints(); 39 | 40 | $graph->Add($sp1); 41 | 42 | $graph->Stroke(); 43 | 44 | ?> 45 | 46 | 47 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterlinkex4.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 15 | $graph->SetShadow(); 16 | $graph->SetAxisStyle(AXSTYLE_BOXIN); 17 | 18 | $graph->img->SetMargin(50,50,60,40); 19 | 20 | $graph->title->Set("Linked scatter plot"); 21 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 22 | $graph->subtitle->Set("(BOXIN Axis style)"); 23 | $graph->subtitle->SetFont(FF_FONT1,FS_NORMAL); 24 | 25 | 26 | // 10% top and bottom grace 27 | $graph->yscale->SetGrace(5,5); 28 | $graph->xscale->SetGrace(1,1); 29 | 30 | $sp1 = new ScatterPlot($datay,$datax); 31 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 32 | $sp1->mark->SetFillColor("red"); 33 | $sp1->SetColor("blue"); 34 | 35 | //$sp1->SetWeight(3); 36 | $sp1->mark->SetWidth(4); 37 | $sp1->SetLinkPoints(); 38 | 39 | $graph->Add($sp1); 40 | 41 | $graph->Stroke(); 42 | 43 | ?> 44 | 45 | 46 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/scatterrotex1.php: -------------------------------------------------------------------------------- 1 | SetScale("linlin"); 10 | 11 | $graph->Set90AndMargin(40,40,40,40); 12 | $graph->SetShadow(); 13 | 14 | $graph->title->Set("A 90 degrees rotated scatter plot"); 15 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 16 | 17 | // Adjust the label align for X-axis so they look good rotated 18 | $graph->xaxis->SetLabelAlign('right','center','right'); 19 | 20 | // Adjust the label align for Y-axis so they look good rotated 21 | $graph->yaxis->SetLabelAlign('center','bottom'); 22 | 23 | $graph->xaxis->SetTitle('X-Axis title','low'); 24 | $graph->xaxis->title->SetAngle(90); 25 | $graph->xaxis->title->SetMargin(15); 26 | 27 | $sp1 = new ScatterPlot($datay,$datax); 28 | $sp1->mark->SetType(MARK_FILLEDCIRCLE); 29 | $sp1->mark->SetFillColor("red"); 30 | $sp1->mark->SetWidth(5); 31 | 32 | $graph->Add($sp1); 33 | $graph->Stroke(); 34 | 35 | ?> 36 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/show-example.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Test suite for JpGraph - <?php echo $target; ?> 6 | 14 | 15 | 16 | "; 19 | else 20 | echo ""; 21 | ?> 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/show-image.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Image <?php echo basename($target); ?> 6 | 7 | 8 | <?php echo basename($target); ?> 9 | 10 | 11 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/show-source.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_RDIAG,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_RDIAG'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex10.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_DIAGCROSS,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_DIAGCROSS'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex11.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_DIAGCROSS,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_DIAGCROSS'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_LDIAG,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_LDIAG'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex3.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_SOLID,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_SOLID'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex4.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_3DPLANE,15,35,'khaki4'); 31 | $band->SetDensity(60); 32 | $band->ShowFrame(true); 33 | $graph->AddBand($band); 34 | 35 | // Set title 36 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 37 | $graph->title->SetColor('darkred'); 38 | $graph->title->Set('BAND_3DPLANE, Density=60'); 39 | 40 | 41 | $graph->Stroke(); 42 | ?> 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex5.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_HVCROSS,15,35,'khaki4'); 31 | $band->ShowFrame(true); 32 | $band->SetOrder(DEPTH_FRONT); 33 | $graph->AddBand($band); 34 | 35 | // Set title 36 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 37 | $graph->title->SetColor('darkred'); 38 | $graph->title->Set('BAND_HVCROSS, In front'); 39 | 40 | 41 | $graph->Stroke(); 42 | ?> 43 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex6.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_VLINE,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_VLINE'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex7.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_HLINE,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_HLINE'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex8.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_3DPLANE,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_3DPLANE'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/smallstaticbandsex9.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 12 | $graph->SetMargin(25,10,20,20); 13 | 14 | // Add 10% grace ("space") at top and botton of Y-scale. 15 | $graph->yscale->SetGrace(10); 16 | 17 | // Create a bar pot 18 | $bplot = new BarPlot($datay); 19 | $bplot->SetFillColor("lightblue"); 20 | 21 | // Position the X-axis at the bottom of the plotare 22 | $graph->xaxis->SetPos("min"); 23 | 24 | $graph->ygrid->Show(false); 25 | 26 | // .. and add the plot to the graph 27 | $graph->Add($bplot); 28 | 29 | // Add band 30 | $band = new PlotBand(HORIZONTAL,BAND_HVCROSS,15,35,'khaki4'); 31 | $band->ShowFrame(false); 32 | $graph->AddBand($band); 33 | 34 | // Set title 35 | $graph->title->SetFont(FF_ARIAL,FS_BOLD,10); 36 | $graph->title->SetColor('darkred'); 37 | $graph->title->Set('BAND_HVCROSS'); 38 | 39 | 40 | $graph->Stroke(); 41 | ?> 42 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/stockex1.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | $graph->SetMarginColor('lightblue'); 18 | $graph->title->Set('Stockchart example'); 19 | 20 | // Create a new stock plot 21 | $p1 = new StockPlot($datay); 22 | 23 | // Width of the bars (in pixels) 24 | $p1->SetWidth(9); 25 | 26 | // Uncomment the following line to hide the horizontal end lines 27 | //$p1->HideEndLines(); 28 | 29 | // Add the plot to the graph and send it back to the browser 30 | $graph->Add($p1); 31 | $graph->Stroke(); 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/stockex2.php: -------------------------------------------------------------------------------- 1 | SetScale("textlin"); 17 | $graph->SetMarginColor('white'); 18 | $graph->SetFrame(false); 19 | $graph->ygrid->SetFill(true,'#EFEFEF@0.5','#BBCCFF@0.5'); 20 | $graph->SetBox(); 21 | 22 | $graph->tabtitle->Set(' Week 34 '); 23 | $graph->tabtitle->SetFont(FF_ARIAL,FS_NORMAL,12); 24 | 25 | // Get week days in curent locale 26 | $days = $gDateLocale->GetShortDay(); 27 | array_shift($days); // Start on monday 28 | $graph->xaxis->SetTickLabels($days); 29 | 30 | // Create stock plot 31 | $p1 = new StockPlot($datay); 32 | 33 | // Indent plot so first and last bar isn't on the edges 34 | $p1->SetCenter(); 35 | 36 | // Add and stroke 37 | $graph->Add($p1); 38 | $graph->Stroke(); 39 | ?> 40 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/stship.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/stship.jpg -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/tabtitleex1.php: -------------------------------------------------------------------------------- 1 | SetMarginColor('white'); 12 | $graph->SetScale("textlin"); 13 | $graph->SetFrame(false); 14 | $graph->SetMargin(30,50,30,30); 15 | 16 | $graph->tabtitle->Set(' Year 2003 ' ); 17 | $graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,13); 18 | 19 | 20 | $graph->yaxis->HideZeroLabel(); 21 | $graph->ygrid->SetFill(true,'#EFEFEF@0.5','#BBCCFF@0.5'); 22 | $graph->xgrid->Show(); 23 | 24 | $graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth()); 25 | 26 | // Create the first line 27 | $p1 = new LinePlot($datay1); 28 | $p1->SetColor("navy"); 29 | $p1->SetLegend('Line 1'); 30 | $graph->Add($p1); 31 | 32 | // Create the second line 33 | $p2 = new LinePlot($datay2); 34 | $p2->SetColor("red"); 35 | $p2->SetLegend('Line 2'); 36 | $graph->Add($p2); 37 | 38 | // Create the third line 39 | $p3 = new LinePlot($datay3); 40 | $p3->SetColor("orange"); 41 | $p3->SetLegend('Line 3'); 42 | $graph->Add($p3); 43 | 44 | $graph->legend->SetShadow('gray@0.4',5); 45 | $graph->legend->SetPos(0.1,0.1,'right','top'); 46 | // Output line 47 | $graph->Stroke(); 48 | 49 | ?> 50 | 51 | 52 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/text-example1.php: -------------------------------------------------------------------------------- 1 | SetPos(0.05,0.5); 10 | $t1->SetOrientation("h"); 11 | $t1->SetFont(FF_FONT1,FS_NORMAL); 12 | $t1->SetBox("white","black",'gray'); 13 | $t1->SetColor("black"); 14 | $graph->AddText($t1); 15 | 16 | $graph->Stroke(); 17 | 18 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/text-example2.php: -------------------------------------------------------------------------------- 1 | SetPos(0.05,100); 10 | $t1->SetFont(FF_FONT1,FS_NORMAL); 11 | $t1->SetBox("white","black",true); 12 | $t1->ParagraphAlign("right"); 13 | $t1->SetColor("black"); 14 | $graph->AddText($t1); 15 | 16 | $graph->Stroke(); 17 | 18 | ?> -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/tiger_bkg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/tiger_bkg.gif -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/tiger_bkg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/tiger_bkg.jpg -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/tiger_bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/tiger_bkg.png -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/topxaxisex1.php: -------------------------------------------------------------------------------- 1 | img->SetMargin(40,40,40,20); 10 | 11 | $graph->SetScale("linlin"); 12 | $graph->SetShadow(); 13 | $graph->title->Set("Top X-axis"); 14 | 15 | // Start at 0 16 | $graph->yscale->SetAutoMin(0); 17 | 18 | // Add some air around the Y-scale 19 | $graph->yscale->SetGrace(100); 20 | 21 | // Use built in font 22 | $graph->title->SetFont(FF_FONT1,FS_BOLD); 23 | 24 | // Adjust the X-axis 25 | $graph->xaxis->SetPos("max"); 26 | $graph->xaxis->SetLabelSide(SIDE_UP); 27 | $graph->xaxis->SetTickSide(SIDE_DOWN); 28 | 29 | // Create the line plot 30 | $p1 = new LinePlot($datay); 31 | $p1->SetColor("blue"); 32 | 33 | // Specify marks for the line plots 34 | $p1->mark->SetType(MARK_FILLEDCIRCLE); 35 | $p1->mark->SetFillColor("red"); 36 | $p1->mark->SetWidth(4); 37 | 38 | // Show values 39 | $p1->value->Show(); 40 | 41 | // Add lineplot to graph 42 | $graph->Add($p1); 43 | 44 | // Output line 45 | $graph->Stroke(); 46 | 47 | ?> 48 | 49 | 50 | -------------------------------------------------------------------------------- /cron/lib/jpgraph/Examples/worldmap1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/Examples/worldmap1.jpg -------------------------------------------------------------------------------- /cron/lib/jpgraph/flags.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/flags.dat -------------------------------------------------------------------------------- /cron/lib/jpgraph/flags_thumb100x100.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/flags_thumb100x100.dat -------------------------------------------------------------------------------- /cron/lib/jpgraph/flags_thumb35x35.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/flags_thumb35x35.dat -------------------------------------------------------------------------------- /cron/lib/jpgraph/flags_thumb60x60.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/flags_thumb60x60.dat -------------------------------------------------------------------------------- /cron/lib/jpgraph/jpgraph_flags.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/jpgraph_flags.php -------------------------------------------------------------------------------- /cron/lib/jpgraph/jpgraph_gantt.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/jpgraph_gantt.php -------------------------------------------------------------------------------- /cron/lib/jpgraph/jpgraph_polar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/jpgraph_polar.php -------------------------------------------------------------------------------- /cron/lib/jpgraph/lang/de.inc.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/cron/lib/jpgraph/lang/de.inc.php -------------------------------------------------------------------------------- /cron/lib/readme.txt: -------------------------------------------------------------------------------- 1 | Library Notes: 2 | 3 | The following are additional libraries that are used by the code base along with the months the version was downloaded. No additional code is added to these directories by the cron scripts so that version updates will be easier to apply. 4 | 5 | Library Version Download Date 6 | 7 | JPGraph: v2.12 (July 2006) 8 | 9 | * note: This JPGraph version is specific for PHP 5 support 10 | -------------------------------------------------------------------------------- /cron/sql/sql_injector.php: -------------------------------------------------------------------------------- 1 | exec($sql); 20 | $error = $mysqlconn->errorInfo(); 21 | if ($error[0] !== '00000') { 22 | print_r($error); 23 | } else { 24 | echo "Done!\n\n"; 25 | } 26 | -------------------------------------------------------------------------------- /cron/tags.inc: -------------------------------------------------------------------------------- 1 | PHP_HEAD 2 | PHP_7_4 3 | PHP_7_3 4 | PHP_7_2 5 | PHP_7_1 6 | -------------------------------------------------------------------------------- /cronjob: -------------------------------------------------------------------------------- 1 | PHPROOT=/var/php_gcov 2 | 3 | # the file with the pid of this process 4 | GLOBALPIDFILE="${PHPROOT}/build.pid" 5 | 6 | # check if we are alone. if not, quit. 7 | if [ -f ${GLOBALPIDFILE} ]; then 8 | if ( ps -p `cat "$GLOBALPIDFILE"` > /dev/null ); then 9 | exit 1 10 | fi 11 | fi 12 | 13 | 14 | # update gcov website 15 | cd /local/Web/sites/php-gcov-web 16 | git pull > /dev/null 17 | 18 | 19 | # get oracle XE environment vars 20 | . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh 21 | 22 | 23 | cd /local/Web/sites/php-gcov-web/cron 24 | ./cron.sh &> nohup.out 25 | -------------------------------------------------------------------------------- /www/.htaccess: -------------------------------------------------------------------------------- 1 | Options +FollowSymLinks -Indexes 2 | 3 | 4 | DirectoryIndex index.php 5 | 6 | 7 | 8 | RewriteEngine On 9 | RewriteRule ^PHP_([_A-Z0-9]+)$ /viewer.php?version=PHP_$1 [R,L] 10 | RewriteRule ^PHP_([_A-Z0-9]+)/([a-z]+)/?$ /viewer.php?version=PHP_$1&func=$2 [R,L] 11 | 12 | -------------------------------------------------------------------------------- /www/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/favicon.ico -------------------------------------------------------------------------------- /www/images/box-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/box-0.gif -------------------------------------------------------------------------------- /www/images/box-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/box-1.gif -------------------------------------------------------------------------------- /www/images/caret-t.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/caret-t.gif -------------------------------------------------------------------------------- /www/images/caret-u.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/caret-u.gif -------------------------------------------------------------------------------- /www/images/checkerboard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/checkerboard.gif -------------------------------------------------------------------------------- /www/images/php.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/php.gif -------------------------------------------------------------------------------- /www/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php/web-gcov/60cf332b595352b72f01eeff9d75e80ca4aa7dd3/www/images/spacer.gif --------------------------------------------------------------------------------