I'm not sure what you're asking for? You want the same data to be drawn as
both bars and a line? If that's the case, then you will need to duplicate
your data. You would need to have 3 columns: one for the domain, one for
the bars series, and another for the line series. An easy way to accomplish
this is by using a DataView. Here's an updated version of my previous
example that does this: http://jsfiddle.net/x11g2vk1/1/

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

> In the referenced link, it draws only a line however I intend to have a
> bar as well as a line.
>
>
> On Tuesday, 31 March 2015 19:37:38 UTC+5:30, Sergey wrote:
>
>> Hi Simran,
>>
>> I'm not quite sure what you're doing wrong... your code appears to work
>> for me. Here's a jsfiddle using the exact options you sent:
>> http://jsfiddle.net/x11g2vk1/
>>
>> On Tue, Mar 31, 2015 at 9:13 AM simran kaur <[email protected]>
>> wrote:
>>
> I am trying to use ComboChart so that I can have a Line chart and Column
>>> chart on same page.
>>>
>>> My data consists of values with String datatype in column 0 called
>>> 'TestType' and other with 'TestValue' in column1.
>>>
>>> Here is how my options variable looks:
>>>
>>>   var options = {
>>>                    title: 'TestType v/s TestValue on ComboChart',
>>>                     vAxis: {title: 'TestValue',  titleTextStyle: {color:
>>> 'red'}},
>>>                      hAxis: {title: 'TestType', titleTextStyle: {color:
>>> 'blue'}},
>>>                      seriesType: "bars",
>>>                      series: {0: {type: "line"}},
>>>                     width:600,
>>>                     height:400
>>>                 };
>>>
>>> Also, I made sure I was rendering ComboChart only:
>>>
>>>
>>> chart = new google.visualization.ComboChart(containerDiv);
>>>
>>> It only renders bars and no line is rendered.. May I know why is that
>>> and how to fix it  and where  I am doing it wrong?
>>>
>>>
>>> <https://lh3.googleusercontent.com/-TsUlyC7WXzE/VRqdAA2SeaI/AAAAAAAAAhE/lhw4xY89Kzw/s1600/chart1.PNG>
>>>
>>>  --
>>> 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.
>>>
>>  --
> 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.
>

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