Hi.
I´m trying to do a simple chart using an external URL that returns a JSON:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="
https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages:['corechart']});
google.setOnLoadCallback(desenhaGrafico);
function desenhaGrafico() {
var wrapper = new google.visualization.ChartWrapper({
dataSourceUrl:'https://raw.github.com/caelum/caelum-online/master/google-chart-tools/07-dados.json',
chartType: 'AreaChart',
containerId: 'meu_grafico',
options:{width:900, height:300}
});
wrapper.draw();
}
</script>
</head>
<body>
<div id="meu_grafico"> </div>
</body>
</html>
You can check the existence of URL by browser.
I´ve tried other valid URLs, but the result is the same.
But I´m receiving the message
Request timed out
What can be?
Thanks in advance
--
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 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/5093181e-25f7-4c29-a11c-33b0d2fc0370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.