Hi Sabastian,

The error message you got indicates there is a bug in Google Charts, so
thanks for posting.  I suspect the problem is the use of the autoload
parameter when you load jsapi.  But even after switching to using
google.load(), the table css is not loaded, so the styles are all wrong, so
that is another bug.

Glad you found a workaround by explicitly loading the package 'table'.


On Mon, Aug 3, 2015 at 6:47 AM, Sebastian K <[email protected]>
wrote:

> I didn´t Import the "Table"-Package. Now it works correct.
>
>
> Am Montag, 3. August 2015 12:15:59 UTC+2 schrieb Sebastian K:
>>
>> 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.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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.

Reply via email to