How to render multple series of data on combo chart with secondary y axis

52 views
Skip to first unread message

simran kaur

unread,
Apr 1, 2015, 11:19:56 AM4/1/15
to google-visua...@googlegroups.com
My datatable looks like this:

arrdata.addRows([
                        [Period, EDVisits, MissedVisits,Admissions, LOS,OutpatientVisits,PatientCount]
                    ]);

I took it from Google charts website assuming it will display multiple series of data on single y axis. But it does.

Here is what I got:

Only first 2 columns of data.Why is that ? How do I fix this ? How do I create secondary y axis with multiple series of data?


Daniel LaLiberte

unread,
Apr 1, 2015, 11:35:01 AM4/1/15
to google-visua...@googlegroups.com
Simran,

Could you post a few rows of sample data, and your options.  Better for us would be if you can reproduce the problem in jsfiddle.

From the image you posted, I would guess your other columns have nulls or undefined values.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Greg Slocum

unread,
Aug 25, 2018, 7:53:55 PM8/25/18
to Google Visualization API
You seem to be able to point me in the right direction.

I have a combo chart that I'm working.  I have it to the point where I have the two columns of data that I want to be column charts the way that I want and the last column of data as a line chart, but I'd like the one in between to be a line chart, as well.

The attached file has what works and what doesn't:

      series: {3: {type: 'line'}}
//      series: {0: {type: 'bar'}, 1: {type: 'bar'}, 2: {type: 'line'"}, 3: {type: 'line'}}

The first line gives the chart with three columns and one line.  Commenting that line out and removing the comment slashes from the second causes the chart not to display.

Direction would be greatly appreciated.


On Wednesday, April 1, 2015 at 11:35:01 AM UTC-4, Daniel LaLiberte wrote:
Simran,

Could you post a few rows of sample data, and your options.  Better for us would be if you can reproduce the problem in jsfiddle.

From the image you posted, I would guess your other columns have nulls or undefined values.
On Wed, Apr 1, 2015 at 11:19 AM, simran kaur <simranka...@gmail.com> wrote:
My datatable looks like this:

arrdata.addRows([
                        [Period, EDVisits, MissedVisits,Admissions, LOS,OutpatientVisits,PatientCount]
                    ]);

I took it from Google charts website assuming it will display multiple series of data on single y axis. But it does.

Here is what I got:

Only first 2 columns of data.Why is that ? How do I fix this ? How do I create secondary y axis with multiple series of data?


--
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 google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA
ComboExample.htm
Reply all
Reply to author
Forward
0 new messages