X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/834bee1cf2c5bd122b3e941c70b5c2f03ee80a27..HEAD:/lib/MLIB/Graph.php diff --git a/lib/MLIB/Graph.php b/lib/MLIB/Graph.php index fa8d412..3f4a401 100644 --- a/lib/MLIB/Graph.php +++ b/lib/MLIB/Graph.php @@ -1,16 +1,15 @@ $Id: Graph.php 428 2003-11-18 14:30:30Z mmarre $ -----------------------------------------------------------------------------*/ -require_once 'MECON/Graph/external/jpgraph/src/jpgraph.php'; +require_once 'MLIB/Graph/external/jpgraph/src/jpgraph.php'; /** * Liberia base para el manejo de graficos. */ -class MECON_Graph { +class MLIB_Graph { /** @@ -91,7 +90,7 @@ class MECON_Graph { * @return void * @access public */ - function MECON_graph($tipo, $ancho=300, $alto=200,$titulo,$attrib_gral=NULL) + function MLIB_graph($tipo, $ancho=300, $alto=200,$titulo,$attrib_gral=NULL) { $this->_tipo=$tipo; $this->_ancho= $ancho; @@ -120,8 +119,8 @@ class MECON_Graph { if(($this->_tipo=="torta")||($this->_tipo=="torta3D")) { - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie.php'; - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie3d.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie3d.php'; $this->_grafico= new PieGraph($ancho,$alto); @@ -198,7 +197,7 @@ class MECON_Graph { if ($tipo=="lineas") { $valido=true; - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_line.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_line.php'; $plot= new LinePlot($secuencia); if (isset($atributos['colorRelleno'])) @@ -209,7 +208,7 @@ class MECON_Graph { if ($tipo=="barras") { $valido=true; - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_bar.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_bar.php'; $plot= new BarPlot($secuencia); if (isset($atributos['colorRelleno'])) @@ -220,7 +219,7 @@ class MECON_Graph { if ($tipo=="puntos") { $valido=true; - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_scatter.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_scatter.php'; $plot= new ScatterPlot($secuencia); if (isset($atributos['tipoMarca'])) @@ -315,12 +314,12 @@ class MECON_Graph { * * Ejemplo de Uso: * @code - * require_once 'MECON/Graph.php'; + * require_once 'MLIB/Graph.php'; * * $v1 = array(12,8,19,3,10,5); * $v2 = array(1,28,9,13,1,5); * - * $graph =& new MECON_Graph ("xy", 300, 300, 'PRUEBA'); + * $graph =& new MLIB_Graph ("xy", 300, 300, 'PRUEBA'); * * $b1plot = $graph->agregarSecuencia("barras", $v1); * $b2plot = $graph->agregarSecuencia("barras", $v2); @@ -364,10 +363,10 @@ class MECON_Graph { * * Ejemplo de uso: * @code - * require_once 'MECON/Graph.php'; + * require_once 'MLIB/Graph.php'; * * $valores = array (4, 6, 23, 14, 30); - * $nuevos = MECON_Graph::porcentajes($valores); + * $nuevos = MLIB_Graph::porcentajes($valores); * * // se obtiene (5, 8, 30, 18, 39) (%) * @@ -381,7 +380,7 @@ class MECON_Graph { */ function porcentajes ($valores) { - require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie.php'; + require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie.php'; $plot = new PiePlot ($valores);