Hi Steve,

Your issue is that your dates are formatted incorrectly. Please refer to our
documentation
<https://developers.google.com/chart/interactive/docs/datesandtimes> for
the correct way to specify them.

On Fri, Dec 11, 2015 at 4:46 AM Steve Morris <[email protected]> wrote:

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

[image: unnamed.gif]

•

•

•

•

Sergey Grabkovsky

Software Engineer

Google, Inc

[email protected]

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAEwwup7wgeuiZr5CuoGupVAqoUCC48ub9E%2BF5RQsS9r0EkfXWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to