Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/03/2005, 09:02
arameo2010
 
Fecha de Ingreso: diciembre-2004
Mensajes: 156
Antigüedad: 19 años, 4 meses
Puntos: 0
veras amigo lo que sucede es lo siguiente..estoy utilizando unas liberias para poder realizar graficos....se llama chardirector....que grafica en php y en le codigo den la libreria coloca en eje de las x label("ejemplo,ejemplo") y en data ($variable 1)...mejor les envio el codigo:
<?php
set_time_limit(0);
$conectID = mssql_connect("F841CCR21645","SA","");
mssql_select_db("lista");
$result=mssql_query("select fecha,llamadas from Nueva_esparta where fecha >= CONVERT(CHAR(8), DATEADD(DD, -60, GETDATE()), 112) order by 1 asc");
while($row = mssql_fetch_array($result)){
$fecha = $row[0];
$cantidad = $row[1];
}
require_once("../lib/phpchartdir.php");
#The data for the line chart
$data = array($cantidad,$cantidad,$cantidad,$cantidad);
#The labels for the line chart
$labels = array ($fecha,$fecha2,$fecha,$fecha);
#Create a XYChart object of size 250 x 250 pixels
$c = new XYChart(950, 2050);
#Set the plotarea at (30, 20) and of size 200 x 200 pixels
$c->setPlotArea(30, 20, 800, 800);
#Add a line chart layer using the given data
$c->addLineLayer($data);
#Set the x axis labels using the given labels
$c->xAxis->setLabels($labels);
#output the chart
header("Content-type: image/png");
print($c->makeChart2(PNG));
?>

gracias