Advertisement
vikowijaya

snippet grafik data barang

Dec 1st, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. while( $row = $result->fetch_assoc() )
  2. {
  3. extract($row);
  4. echo "['{$nm_kategori}', {$jumlah_barang}],";
  5. $a[$i] = $nm_kategori;
  6. $b[$i] = $kd_kategori;
  7. $i++;
  8. }
  9. ?
  10. // Create and draw the visualization.
  11. var pieChart = new google.visualization.PieChart(document.getElementById('visual'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement