init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
38
lib/PhpSpreadsheet/Chart/Renderer/MtJpGraphRenderer.php
Normal file
38
lib/PhpSpreadsheet/Chart/Renderer/MtJpGraphRenderer.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Chart\Renderer;
|
||||
|
||||
use mitoteam\jpgraph\MtJpGraph;
|
||||
|
||||
/**
|
||||
* Jpgraph is not officially maintained by Composer at packagist.org.
|
||||
*
|
||||
* This renderer implementation uses package
|
||||
* https://packagist.org/packages/mitoteam/jpgraph
|
||||
*
|
||||
* This package is up to date for June 2023 and has PHP 8.2 support.
|
||||
*/
|
||||
class MtJpGraphRenderer extends JpGraphRendererBase
|
||||
{
|
||||
protected static function init(): void
|
||||
{
|
||||
static $loaded = false;
|
||||
if ($loaded) {
|
||||
return;
|
||||
}
|
||||
|
||||
MtJpGraph::load([
|
||||
'bar',
|
||||
'contour',
|
||||
'line',
|
||||
'pie',
|
||||
'pie3d',
|
||||
'radar',
|
||||
'regstat',
|
||||
'scatter',
|
||||
'stock',
|
||||
], true); // enable Extended mode
|
||||
|
||||
$loaded = true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue