I'm having an even simpler but related problem, with ChartWrapper.

If you copy the code from the first example here:
http://code.google.com/apis/chart/interactive/docs/drawing_charts.html#chartwrapper
, the chart fails to render, and you get the error "Bars series with
value domain axis is not supported." I'm 90% sure this worked last
week. Has there been a change to ChartWrapper, but the documenatation
is not up to date?



On Jan 9, 11:42 am, MrTik <hetan.s...@gmail.com> wrote:
> Thanks, MC Get Vizzy,
>
> This is what I am using now.
>
>                 // Define a bar chart to show 'Population' data
>                         var columnChart = new 
> google.visualization.ColumnChart({
>                                 'chartType': 'ComboChart',
>                                 'containerId': 'chart12',
>                                 'options': {
>                                 'width': 1100,
>                                         'height': 500,
>                                         'legend': 'right',
>                                         'isStacked': true,
>                                 'title': 'Forward Costs Initiatives Impact',
>                                 'seriesType': 'bars',
>                                 'series': {4: {type: 'line'}}
>                                 },
>                                 // Configure the barchart to use columns
>                                 'view': {'columns': [4, 5, 6, 7, 8, 9, 10, 
> 11, 12, 13, 14, 15,
> 16]}
>                                 //'view': {'columns': [4, 5, 6, 7, 8, 9, 10, 
> 11]}
>                         });
>
> However when I try to draw the chart I get the following error:
> [object Object] does not fit either the Control or Visualization
> specification.
>
> Any ideas?
>
> Regards.
>
> *************************************************************************** 
> *************************************************************************** 
> *****************************************************
>
> On Jan 8, 2:36 am, MC Get Vizzy <getvi...@google.com> wrote:
>
>
>
>
>
>
>
> > Your 'chartType' should be 'ComboChart', not 'ColumnChart'.  I'm not sure
> > that will fix your problem, though.  I tried plugging in my own data and I
> > couldn't reproduce the problem.  The following works fine:
>
> > var chart = new google.visualization.ChartWrapper({
> >                                'chartType': 'ComboChart',
> >                                'containerId': 'visualization',
> >                                'options': {
> >                                'width': 1100,
> >                                'height': 500,
> >                                'legend': 'right',
> >                                'isStacked': true,
> >                                'title': 'Forward Costs Initiatives Impact',
> >                                'seriesType': 'bars',
> >                                'series': {6: {type: 'line'}}
> >                                },
> >                                'dataTable': [
> >                                  ['0', '1', '2', '3', '4', '5', '6', '7',
> > '8', '9', '10', '11'],
> >                                  [0, 1, 2, 3, 'a', 5, 6, 7, 8, 9, 10, 11],
> >                                  [10, 11, 12, 13, 'b', 15, 16, 17, 18, 19,
> > 20, 21]
> >                                ],
> >                                // Configure the barchart to use columns
> >                                'view': {'columns': [4, 5, 6, 7, 8, 9, 10,
> > 11]}
> >                        });
> >                        chart.draw();
>
> > On Sat, Jan 7, 2012 at 9:43 PM, MC Get Vizzy <getvi...@google.com> wrote:
>
> > > I'll have a look at this, but why is there no dataTable/dataSourceUrl?  Is
> > > it in a Dashboard?
>
> > > On Sat, Jan 7, 2012 at 2:59 AM, MrTik <hetan.s...@gmail.com> wrote:
>
> > >> Hi,
>
> > >> I am having an issue with the ChartWrapper not rendering a line when
> > >> defining as follows.
>
> > >>                        // Define a bar chart to show data
> > >>                        var columnChart = new
> > >> google.visualization.ChartWrapper({
> > >>                                'chartType': 'ColumnChart',
> > >>                                'containerId': 'chart12',
> > >>                                'options': {
> > >>                                'width': 1100,
> > >>                                        'height': 500,
> > >>                                        'legend': 'right',
> > >>                                        'isStacked': true,
> > >>                                'title': 'Forward Costs Initiatives
> > >> Impact',
> > >>                                'seriesType': 'bars',
> > >>                                'series': {6: {type: 'line'}}
> > >>                                },
> > >>                                // Configure the barchart to use columns
> > >>                                'view': {'columns': [4, 5, 6, 7, 8, 9, 10,
> > >> 11]}
> > >>                        });
>
> > >> Can someone please take a look and advise why the series option does
> > >> not plot a line in my chart?
>
> > >> 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
> > >> google-visualization-api@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-visualization-api+unsubscr...@googlegroups.com.
> > >> 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 google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to