Claro si tengo un código que te ayude!!
Lo que pasa es que es un poco largo
![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
por que lo hice a la carrera y no es tan óptimo que digamos, lo voy a postear, todo es un mismo archivo, copiar y pegar:
Código PHP:
<?php
require("../../funciones/funciones.php");
include ("../../funciones/jpgraph/src/jpgraph.php");
include ("../../funciones/jpgraph/src/jpgraph_bar.php");
include ("../../funciones/jpgraph/src/jpgraph_canvas.php");
$anno=$_GET[ano];
$i=0;
$link=conexiondb();
if($link!=1)
{
do
{
$consulta="select sum(vlor) from fnnzas_sldas,fnnzas_tpo_srvcio,fnnzas_srvcio where fnnzas_sldas.cdgo_tpo_srvcio=fnnzas_tpo_srvcio.cdgo_tpo_srvcio and fnnzas_tpo_srvcio.cdgo_srvcio=fnnzas_srvcio.cdgo_srvcio and year(fcha_slda)='$anno' and month(fcha_slda)='$i'";
$req=mysql_query($consulta);
$row=mysql_fetch_array($req);
if($i==1)
{
$tenero=$row[0];
}
if($i==2)
{
$tfebrero=$row[0];
}
if($i==3)
{
$tmarzo=$row[0];
}
if($i==4)
{
$tabril=$row[0];
}
if($i==5)
{
$tmayo=$row[0];
}
if($i==6)
{
$tjunio=$row[0];
}
if($i==7)
{
$tjulio=$row[0];
}
if($i==8)
{
$tagosto=$row[0];
}
if($i==9)
{
$tseptiembre=$row[0];
}
if($i==10)
{
$toctubre=$row[0];
}
if($i==11)
{
$tnoviembre=$row[0];
}
if($i==12)
{
$tdiciembre=$row[0];
}
$i++;
}while($i<13);