Hello, 
i need add Yahoo Fiance data of sectors to google treemap 
https://google-developers.appspot.com/chart/interactive/docs/gallery/treemap
by Yahoo API. 
How add code to google treemap?? 

var query = "select * from yahoo.finance.quotes where symbol = 'GOOG'";

var yql = "http://query.yahooapis.com/v1/public/yql?q="; + escape(query) + 
"&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback=?";

$("#yql").text(yql);

$.ajax({
    url: yql,
    dataType: 'json',
    success: function(data) {
        var results = "";
        var keys = _.keys(data.query.results.quote);
        //var values = _.values(data.query.results.quote);
                
           
        for (i=0;i<keys.length;i++) {
            results += "<div>" + keys[i] + ": " + 
data.query.results.quote[keys[i]] + "</div>";
        }
        
        
        $("#info").html(results);        
    }
});

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to