PHP: gChartPHP - adding visible values to pie charts

amticakoss

New Member
I'm using the gchart php wrapper from http://code.google.com/p/gchartphp/. This is a question for anyone out there using it. Can you visibly display the values that make up slices of a pie chart?\[code\]<?php$piChart = new gPieChart();$piChart->setDimensions(650,300);$piChart->addDataSet(array_values($type));$piChart->setLabels(array_keys($type));$piChart->setColors(array("F26134", "F1F1F1","FFC7A8","E6E6E6","171717"));$piChart->setTitle("All Tickets by Issue Type");?><img src="http://stackoverflow.com/questions/3635687/<?php print $piChart->getUrl(); ?>" /> \[/code\]Is it possible that for each slice it shows this sort of format - "label (15)"Thanks!Jonesy
 
Back
Top