i can do this?

11 views
Skip to first unread message

Marcio Prando

unread,
Oct 23, 2015, 12:49:51 PM10/23/15
to Google Visualization API


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}}]]);
Reply all
Reply to author
Forward
0 new messages