google visualization - Pie Chart showing "other" when it should show data -


i have implemented google pie chart. works when try add data less 10 not plot on chart instead of add new entry under legend named - "other"

my script

<script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setonloadcallback(drawchart); function drawchart() { var data = google.visualization.arraytodatatable([  ['task', 'age difference'], ['>10',        15], ['10-15',      <?php echo $agecnt2;?>], ['16-20',      <?php echo $agecnt3;?>], ['21-25',      <?php echo $agecnt4;?>], ['26-30',      <?php echo $agecnt5;?>], ['31-35',      <?php echo $agecnt6;?>], ['36-40',      <?php echo $agecnt7;?>], ['41-45',      <?php echo $agecnt8;?>], ['46-50',      <?php echo $agecnt9;?>], ['51-55',      <?php echo $agecnt10;?>], ['56-60',      <?php echo $agecnt11;?>], ['61-65',      <?php echo $agecnt12;?>], ['66-70',      <?php echo $agecnt13;?>], ['71-75',      <?php echo $agecnt14;?>], ['76-80',      <?php echo $agecnt15;?>], ['>80',        <?php echo $agecnt16;?>] ]);  var options = {   title: 'age difference' };  var chart = new google.visualization.piechart(document.getelementbyid('chart_div4')); chart.draw(data, options); } </script>   

please me.

reply appreciated.

thanks advance.

-john

the google pie chart groups "small" slices "other" group. default, group have default smaller 1/2degree grouped "other" section. can modify slicevisibilitythreshold (described here) minimize/eliminate effect.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -