
Hello!
I'm trying to do this chart, but don't work!
I believe that my problem are the columns in the chart.
Sorry my bad english, and thank's!
window['data'+contador] = new google.visualization.DataTable();
window['data'+contador].addColumn('string', 'Pergunta');
window['data'+contador].addColumn('string', 'Resposta');
window['data'+contador].addColumn('number', 'Quantidade');
@foreach($resultado as $key=>$value)
@foreach($value as $pergunta=>$arrayResposta)
@foreach($arrayResposta as $resposta=>$quantidade)
window['data'+contador].addRows([[{v: '{{$pergunta}}'},'{{$resposta}}',{{$quantidade}}]]);
@endforeach
@endforeach
@endforeach
addRows([[{v: '{{$pergunta}}'},'{{$resposta}}',{{$quantidade}}]]);