├── 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 |