Hi Simran,

You are missing a comma before the hAxis identifier (after the vAxis:
{...}), and that is why the identifier was unexpected. It would be nice if
the JavaScript parsers could report more useful error messages.

By the way, the combo chart only shows one type of chart per data series,
so you can't get both a line and bar chart for the same data.  The simplest
way to do what you want, however, is to duplicate that one column by using
a DataView, like this:

var data = ... // your data table.
var view = new google.visualization.DataView(data);
view.setColumns([0, 1, 1]);

var chart = ... // your chart
chart.draw(view, options);


On Wed, Apr 1, 2015 at 5:56 AM, simran kaur <[email protected]>
wrote:

> I want to be able to use secondary y axis with combo charts such that a
> line and bars are rendered.Here is what I have tried:
>
>
>
> var options2 = {
>     title : 'CD4 && ViralLoad v/s DateTime',
>     vAxes: {
>     0: {
>         observationvalueCD4 : 'observationvalueCD4'
>     },
>     1: {
>       observationValueViralLoad :'observationValueViralLoad'
> }
> }
>     hAxis: {title: 'ObservationDateTime'},   --errror here that says
> unexpected identifier. Is there a workaround for this ?
>     seriesType: "bars",
>     series: {1: {type: "line"}}
>   };
>
>
> But in inspect element console, I get an error as specified above.Any
> syntactic errors here or any alternatives ?lso, I could not understand
> targetAxsIndex option.Please bother to explain it. Thanks
>
>  --
> 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