Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace PhpOffice\PhpSpreadsheet\Chart\Renderer;
4
 
5
use mitoteam\jpgraph\MtJpGraph;
6
 
7
/**
8
 * Jpgraph is not officially maintained by Composer at packagist.org.
9
 *
10
 * This renderer implementation uses package
11
 * https://packagist.org/packages/mitoteam/jpgraph
12
 *
13
 * This package is up to date for June 2023 and has PHP 8.2 support.
14
 */
15
class MtJpGraphRenderer extends JpGraphRendererBase
16
{
17
    protected static function init(): void
18
    {
19
        static $loaded = false;
20
        if ($loaded) {
21
            return;
22
        }
23
 
24
        MtJpGraph::load([
25
            'bar',
26
            'contour',
27
            'line',
28
            'pie',
29
            'pie3d',
30
            'radar',
31
            'regstat',
32
            'scatter',
33
            'stock',
34
        ], true); // enable Extended mode
35
 
36
        $loaded = true;
37
    }
38
}