en el editor de google chart tengo
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales',{ role: 'style' }, 'Expenses',{ role: 'style' },'new'],
['2004', 1000,'red' , 400,'#b87333',200],
['2005', 1170, 'red' , 460,'#b87333',200],
['2006', 660, 'red' , 1120,'#b87333',200],
['2007', 1030, 'red' , 540,'#b87333',200]
]);
var options = {
title: 'Company Performance',
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}}
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
lo adapte para la extencion googlechart
<div class="row" >
<div class="span6" >
<?php
//very useful google chart
$this->widget('ext.Hzl.google.HzlVisualizationChart', array('visualization' => 'BarChart',
'data' => array(
array('Secretarias', 'Hallazgos'," { role: 'style' }", 'Proceso', 'Vencidos'),
array('Interior', 11,"#b87333",8,4),
array('Setic', 2,"#b87333",8,4),
array('Infraestructura', 2,"#b87333",8,4),
array('Hacienda', 2,"#b87333",8,4),
array('Agricultura', 7,"#b87333",8,4)
),
'options' => array(
'title' => 'por secretarias',
),
));?>
</div>
</div>
pero me sale el error "All series on a given axis must be of the same data type" verifique y creo que estan bien el tipo de datos ayuda porfa