Hey

If you look up the API you can see that you bind control/s to chart/s. The
example below tries to bind two charts which is probably the cause for this
error.

HTH
ChartMan
On Dec 30, 2011 2:32 AM, "MrTik" <[email protected]> wrote:

> Here is the code that I am trying to render, however I get the
> mentioned error.
>
> function rDetailQueryResponse(response) {
>                        if (response.isError()) {
>                    alert('Error in query: ' + response.getMessage() + ' '
> +response.getDetailedMessage());
>                                return;
>                        }
>                        mResultDetails = response.getDataTable();
>                        var mDrawData2 = new
> google.visualization.Table(document.getElementById('visualization2'));
>
>                        mDataJoin = new
> google.visualization.data.join(mResultDetails,mDriverName,'left',
> [[1,1],[2,2],[3,3],[4,4]],[5,6,7,8,9,10,11,12,13,14,15,16],[5]);
>
>                        // Define a chart to show data
>                        var columnChart = new
> google.visualization.ChartWrapper({
>                                'chartType': 'ColumnChart',
>                                'containerId': 'chart3',
>                                'options': {
>                                'width': 1500,
>                                        'height': 800,
>                                        'legend': 'right',
>                                        'isStacked': true,
>                                        'title': 'Forward Costs Initiatives
> Impact',
>                                        'seriesType': 'bars',
>                                        'series': {7: {type: 'line'}, 8:
> {type: 'line'}, 9: {type:
> 'line'}}
>                                },
>                                // Configure the barchart to use columns
>                                'view': {'columns': [4, 5, 6, 7, 8, 9, 10,
> 11, 12, 13, 14]}
>                        });
>
>                         //Define a table
>                        var table = new google.visualization.ChartWrapper({
>                                'chartType': 'Table',
>                                'containerId': 'chart2',
>                                'options': {
>                                        'width': '1500'
>                                },
>                                // Configure the barchart to use columns
>                                'view': {'columns': [0, 1, 2, 3, 4, 5, 6,
> 7, 8, 9, 10, 11, 12, 13,
> 14]}
>                        });
>
>                        new
>
> google.visualization.Dashboard(document.getElementById('visualization')).bind([columnChart,
> table]).draw(mDataJoin);
>
>                }
>
> Any thoughts as to why I would get this error?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to