Hi! I´m trying to implement a Dashboard on our site. Here ist the Code I´m using:
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['corechart', 'controls']}]}"></script> google.setOnLoadCallback(drawChart); function drawChart() { var dashboard = new google.visualization.Dashboard(document. getElementById('dashboard_div')); // We omit "var" so that programmaticSlider is visible to changeRange. programmaticSlider = new google.visualization.ControlWrapper({ 'controlType': 'NumberRangeFilter', 'containerId': 'control_div', 'options': { 'filterColumnLabel': 'Test', 'ui': {'labelStacking': 'vertical'} } }); programmaticChart = new google.visualization.ChartWrapper({ 'chartType': 'Table', 'containerId': 'chart_div', 'options': { 'width': 300, 'height': 300, } }); var data = google.visualization.arrayToDataTable([ ['Name', 'Test'], ['Michael' , 5], ['Elisa', 7], ['Robert', 3], ['John', 2], ['Jessica', 6], ['Aaron', 1], ['Margareth', 8] ]); dashboard.bind(programmaticSlider, programmaticChart); dashboard.draw(data); } <div id="dashboard_div"> <div id="control_div"></div> <div id="chart_div"></div> </div> When I set the chartType to "PieChart" the Chart is drawn correct. If I change it to Table it is not drawn and I get the following errors: One or more participants failed to draw()× c[Qs] is not a function When I try the same code in a Fiddle it works withour any Problems. Where is my mistake? Kind Regards, Sebix -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
