Gracias, esto es lo que no estaba seguro.Arameo ya probaste con el codigo que armo josemi:
Código PHP:
<?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");
$fecha=array();
$cantidad=array();
while($row = mssql_fetch_array($result)){
$fecha[] = $row[0];
$cantidad[] = $row[1];
}
require_once("../lib/phpchartdir.php");
#The data for the line chart
$data = $cantidad; // $cantidad es ya un array
#The labels for the line chart
$labels = $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));
?>
Este codigo deberia de andar si la consulta te devuelve todos los resultados deseados.
Suerte