Hello Everyone,

So I came up from the simple line chart example and develop the code into 
this:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Visualization API Sample</title>
<!--
  One script tag loads all the required libraries! Do not specify any chart 
types in the
  autoload statement.
-->
<script type="text/javascript"
      src='https://www.google.com/jsapi?autoload={
        "modules":[{
        "name":"visualization",
        "version":"1"
        }]
      }'></script>
<script type="text/javascript">
  google.setOnLoadCallback(drawVisualization);

  function drawVisualization() {
    var wrap = new google.visualization.ChartWrapper({
       'chartType':'LineChart',
       'dataSourceUrl':'http://amr2.mybluemix.net/getmet/list',
       'containerId':'visualization',
       'query':'SELECT currA,timetag',
       'options': {'title':'Example Chart', 'legend':'none'}
       });
     wrap.draw();
  }
</script>
</head>
<body>
  <div id="visualization" style="height: 400px; width: 400px;"></div>
</body>
</html>


This is my API: http://amr2.mybluemix.net/getmet/list


My code doesn't work. Anybody can show me what I have been missing? 

-- 
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/5e9736f7-d686-46f4-a70e-e9e894305ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [visualization-api] The C... Yogie Putra

Reply via email to