Error: a[jc] is not a function

13 views
Skip to first unread message

Steve Morris

unread,
Dec 11, 2015, 4:45:58 AM12/11/15
to Google Visualization API
I get the message 'a[jc] is not a function' when I try to draw this graph. The JSON string passes a validator - JSONLint. How can I find the problem? Am I missing something?

var dummyJSONData="{\"cols\":[{\"id\":\"col_head\",\"label\":\"Date\",\"type\":\"date\"},{\"id\":\"col_0\",\"label\":\"Plan - minimum time\",\"type\":\"number\"},{\"id\":\"col_1\",\"label\":\"Plan - average time\",\"type\":\"number\"},{\"id\":\"col_2\",\"label\":\"Plan - maximum time\",\"type\":\"number\"}],\"rows\":[{\"c\":[{\"v\":\"2015-08-08T12:00-0000\",\"f\":\"2015-08-08\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"}]},{\"c\":[{\"v\":\"2015-08-09T12:00-0000\",\"f\":\"2015-08-09\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"}]},{\"c\":[{\"v\":\"2015-08-10T12:00-0000\",\"f\":\"2015-08-10\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"}]},{\"c\":[{\"v\":\"2015-08-11T12:00-0000\",\"f\":\"2015-08-11\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"}]},{\"c\":[{\"v\":\"2015-08-12T12:00-0000\",\"f\":\"2015-08-12\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"},{\"v\":0,\"f\":\"0:0\"}]},{\"c\":[{\"v\":\"2015-08-13T12:00-0000\",\"f\":\"2015-08-13\"},{\"v\":15.9,\"f\":\"15:-884\"},{\"v\":137.338,\"f\":\"137:-8082\"},{\"v\":256.5,\"f\":\"256:-15103\"}]},{\"c\":[{\"v\":\"2015-08-14T12:00-0000\",\"f\":\"2015-08-14\"},{\"v\":0.917,\"f\":\"0:0\"},{\"v\":44.206,\"f\":\"44:-2595\"},{\"v\":259.6,\"f\":\"259:-15280\"}]}]}";
 
var graphOptions = {
 title
: 'Performance',
 seriesType
: 'bars',
 height
:600,
 chartArea
: {top:50}
};

 
:
 
:
 
:

var chart = new google.visualization.ComboChart(document.getElementById('chartDiv'));
graphData
= new google.visualization.DataTable(dummyJSONData);
chart
.draw(graphData, graphOptions);
 
:
 
:


Sergey Grabkovsky

unread,
Dec 11, 2015, 9:37:13 AM12/11/15
to Google Visualization API
Hi Steve,

Your issue is that your dates are formatted incorrectly. Please refer to our documentation for the correct way to specify them.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/80b0d033-090e-49d7-a02b-5330abe8e322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com

Reply all
Reply to author
Forward
0 new messages