Foros del Web » Programando para Internet » PHP »

Grafico Comun y Ordinario...Como..?

Estas en el tema de Grafico Comun y Ordinario...Como..? en el foro de PHP en Foros del Web. hola quiero realizar un Grafico de punto o lo que sea, lo tengo que implemetar en php atravez de unos numeros... eh estado buscando ya ...
  #1 (permalink)  
Antiguo 15/04/2005, 10:54
 
Fecha de Ingreso: febrero-2005
Ubicación: chile, Santiasko
Mensajes: 728
Antigüedad: 19 años, 2 meses
Puntos: 1
Grafico Comun y Ordinario...Como..?

hola quiero realizar un Grafico de punto o lo que sea, lo tengo que implemetar en php atravez de unos numeros...

eh estado buscando ya toda la mañana y encontre aqui varios foros ya con lo mismo, pero los eh probado todos pero me sale un error...

este me sale con un archivo que se llama Standard:
Código:
PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0

este me sale por el Jpgraph:
Código:
PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0
que es el mismo.... pero nose como solucionarlo, porfis ayudenme... es algo que a la vista se vee super facil pero ya tengo dolores de cabeza.....


salu2 y gracias de antemano
__________________
Una Vez Muerto el Perro.............Se acaba la Rabia :risa:
  #2 (permalink)  
Antiguo 18/04/2005, 07:43
 
Fecha de Ingreso: febrero-2005
Ubicación: chile, Santiasko
Mensajes: 728
Antigüedad: 19 años, 2 meses
Puntos: 1
ya lo solucione, tenia que tener un archivo en la raiz del php..... mas especificamente un .DLL

y ahora estoy tratando de modificar un archivo...pero esta muy dificil, es uno que baje por inet se llama phpplot, y tiene bastantes ejemplos, justo los que necesito...


pero en las imagenes salen 3 lineas, y lo que necesito es 1 solamente...el que lo tenga o haya utilizado me enseña donde debo modificar... hasta ahora me esta ganando.......


salu2
__________________
Una Vez Muerto el Perro.............Se acaba la Rabia :risa:
  #3 (permalink)  
Antiguo 18/04/2005, 13:48
 
Fecha de Ingreso: febrero-2005
Ubicación: chile, Santiasko
Mensajes: 728
Antigüedad: 19 años, 2 meses
Puntos: 1
hola pude modificar un poco, pero necesito ayuda... no entiendo muy bien el codigo......

aqui les dejo el codigo: este debo modificarlo cosa que me quede una fila un ejemplo x=1-10 e Y=1-19, pero estan pares...osea 10 y 10, yo quiero 19 y 10....
Código:
<?php
$example_data = array(
	array("__A__",0.0),
	array("__B__",2.0),
	array("__C__",3.0),
	array("__D__",4.0),
	array("__E__",4.4),
	array("__F__",5.4),
	array("__G__",5.5),
	array("__H__",7),
	array("__I__",7.4),
	array("__J__",7.6)
);
?>
de aqui lo llamo:
Código PHP:
<?php
//Include the code
include("../phplot.php");

//Define the object
$graph = new PHPlot;

//Set some data
include("./data.php");
$graph->SetDataValues($example_data);


//Draw it
$graph->DrawGraph();

?>
aqui esta los archivos del phplot:
Código PHP:
function DrawGraph() {

        if ( (
$this->img) == "") {
            
$this->InitImage();
        }
        if (! 
is_array($this->data_values)) {
            
$this->DrawBackground();
            
$this->DrawError("No array of data in \$data_values");
        } else {
            if (!
$this->data_color) {
                
$this->SetDataColors(array("black"),array("black"));
            }

            
$this->FindDataLimits();  //Get maxima and minima for scaling

            
$this->SetXLabelHeight();        //Get data for bottom margin

            
$this->SetYLabelWidth();        //Get data for left margin

            
if (!$this->plot_area_width) {
                
$this->SetPlotAreaPixels("","","","");        //Set Margins
            
}

            if (!
$this->plot_max_y) {  //If not set by user call SetPlotAreaWorld,
                
$this->SetPlotAreaWorld("","","","");
            }

            if (
$this->data_type == "text-data") {
                
$this->SetEqualXCoord();
            }

            
$this->SetPointSize($this->point_size);

            
$this->DrawBackground();
            
$this->DrawImageBorder();

            
$this->SetTranslation();

            
$this->DrawPlotAreaBackground();
//$foo = "$this->max_y, $this->min_y, $new_miny, $new_maxy, $this->x_label_height";
//ImageString($this->img, 4, 20, 20, $foo, $this->text_color);

            
switch ($this->plot_type) {
                case 
"bars":
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    
$this->DrawBars();
                    break;
                case 
"thinbarline":
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    
$this->DrawThinBarLines();
                    break;
                case 
"lines":
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    if ( 
$this->data_type == "text-data") {
                        
$this->DrawLines();
                    } elseif ( 
$this->data_type == "data-data-error") {
                        
$this->DrawLinesError();
                    } else {
                        
$this->DrawLines();
                    }
                    break;
                case 
"area":
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    if ( 
$this->data_type == "text-data") {
                        
$this->DrawAreaSeries();
                    } else {
                        
$this->DrawArea();
                    }
                    break;
                case 
"linepoints":
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    if ( 
$this->data_type == "text-data") {
                        
$this->DrawLines();
                        
$this->DrawDotSeries();
                    } elseif ( 
$this->data_type == "data-data-error") {
                        
$this->DrawLinesError();
                        
$this->DrawDotsError();
                    } else {
                        
$this->DrawLines();
                        
$this->DrawDots();
                    }
                    break;
                case 
"points";
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    if ( 
$this->data_type == "text-data") {
                        
$this->DrawDotSeries();
                    } elseif ( 
$this->data_type == "data-data-error") {
                        
$this->DrawDotsError();
                    } else {
                        
$this->DrawDots();
                    }
                    break;
                case 
"pie":
                    
$this->DrawPieChart();
                    
$this->DrawLabels();
                    break;
                default:
                    
$this->DrawPlotBorder();
                    
$this->DrawLabels();
                    
$this->DrawBars();
                    break;
            }

            if (
$this->legend) {
                
$this->DrawLegend($this->legend_x_pos,$this->legend_y_pos,"");
            }

        }
        if (
$this->print_image == 1) { 
            
$this->PrintImage();
        }
    } 
//function DrawGraph

 

Código PHP:
    function SetDataValues($which_dv) {
        
$this->data_values $which_dv;
//echo $this->data_values
        
return true;
    } 
espero que me ayuden......necesio modificar ese array, que quede un grafico de 19 por 10... osea x seria el de abajo es 10 e y seria el de al lado que seria 19 datos....


porfis ayudenme.....


salu2
__________________
Una Vez Muerto el Perro.............Se acaba la Rabia :risa:
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:15.