This time, can't get a chart to be rendered

20 views
Skip to first unread message

Bryan Maloney

unread,
Aug 4, 2016, 11:05:41 AM8/4/16
to Google Visualization API

Now that I got the axes issues out of the way, I tried to add a second type of chart.

This page is a simplified version of the problem. The chart on the left renders correctly. The chart on the right gets an error: You called the draw() method with the wrong type of data rather than a DataTable or DataView×


What do I need to do so both charts render.

Daniel LaLiberte

unread,
Aug 4, 2016, 11:23:36 AM8/4/16
to Google Visualization API
In your disp_age chart drawing, you are giving it disp_age as your data, but you meant to give it 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-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6f4cbf36-ceab-4eeb-92b1-daba4f51c185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Daniel LaLiberte

unread,
Aug 4, 2016, 11:28:18 AM8/4/16
to Google Visualization API
You are also redefining the function drawChart, but you probably should be using a different function name for each.

We have a doc page on drawing multiple charts in the same page:  https://developers.google.com/chart/interactive/docs/basic_multiple_charts

On Thu, Aug 4, 2016 at 11:23 AM, Daniel LaLiberte <dlali...@google.com> wrote:
In your disp_age chart drawing, you are giving it disp_age as your data, but you meant to give it data.
On Thu, Aug 4, 2016 at 11:05 AM, Bryan Maloney <maloneyw...@gmail.com> wrote:

Now that I got the axes issues out of the way, I tried to add a second type of chart.

This page is a simplified version of the problem. The chart on the left renders correctly. The chart on the right gets an error: You called the draw() method with the wrong type of data rather than a DataTable or DataView×


What do I need to do so both charts render.

--
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+unsubscr...@googlegroups.com.
--

Bryan Maloney

unread,
Aug 4, 2016, 11:42:19 AM8/4/16
to google-visua...@googlegroups.com
Always something so simple!

On Thu, Aug 4, 2016 at 11:28 AM, 'Daniel LaLiberte' via Google Visualization API <google-visua...@googlegroups.com> wrote:
You are also redefining the function drawChart, but you probably should be using a different function name for each.

We have a doc page on drawing multiple charts in the same page:  https://developers.google.com/chart/interactive/docs/basic_multiple_charts
On Thu, Aug 4, 2016 at 11:23 AM, Daniel LaLiberte <dlali...@google.com> wrote:
In your disp_age chart drawing, you are giving it disp_age as your data, but you meant to give it data.
On Thu, Aug 4, 2016 at 11:05 AM, Bryan Maloney <maloneyw...@gmail.com> wrote:

Now that I got the axes issues out of the way, I tried to add a second type of chart.

This page is a simplified version of the problem. The chart on the left renders correctly. The chart on the right gets an error: You called the draw() method with the wrong type of data rather than a DataTable or DataView×


What do I need to do so both charts render.

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



--

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/CgU1X4QtcKg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages