How do I store the results of $chart->draw(); to a variable?

shaggyfahad

New Member
I'm using the succinctly named googlechartseasyphpclass script to generate google charts from numbers I'm grabbing from a database. After the charts are generated, I want to put the results in a different table. The way you generate a Google Charts URL using the easyphpclass script is like this:\[code\]$chart=new googleChart(null,'line',$title,'500x200');$chart->loadData($chartData);$chart->setLabels($axislabel);$chart->draw(); \[/code\]That last line is tripping me up. I can't shove the URL it produces into a variable so I can put it in a database table. It just draws the chart on the screen. Is there a good way of taking that value and making it something I can use? Thanks!
 
Back
Top