Looking at the actual output, the problematic line is here:
var data = google.visualization.arrayToDataTable(<?= $grafico2;?>);
You'll notice that the <?= $grafico2;?>
didn't get parsed by your PHP engine. This indicates that you don't have short-tags enabled on your server. For the moment, just swich that line to:
var data = google.visualization.arrayToDataTable(<?php echo $grafico2;?>);
But you'll probably want to enable short-tags for the future.