Thank you very much ChartMan Now all works fine. On 30 dez, 10:22, Enio <[email protected]> wrote: > I am doing this. > > google.load("visualization", "1", {packages:["corechart"]}); > dados = new google.visualization.DataTable(); > dados.addColumn('string', 'Situação', null); > dados.addColumn('number', 'Nr de árvores/mudas', null); > max_i = obj_json.length; > dados.addRows(max_i); > for (i = 0; i < max_i; i = i + 1) > { > dados.setCell(i, 0, obj_json[i]['situacao'],null,null); > dados.setCell(i, 1, obj_json[i]['qtd'],null,null); > } > opcoes = > { > width: 450, height: 300, > title: 'Nr de árvores / mudas por situação', > is3D : true > }; > gr = new > google.visualization.PieChart(document.getElementById('div_gr')); > gr.draw(dados, opcoes); > > On 30 dez, 10:06, ChartMan <[email protected]> wrote: > > > > > > > > > You need to load the visualization API to your page for your code to run > > properly. > > On Dec 30, 2011 1:48 PM, "Enio" <[email protected]> wrote: > > > > Hi and thanks > > > > I tried this file and runs on compiler. The compiler is complaining > > > about a few things: > > > - there is no google.visualization.errors > > > - and there is no constructores... > > > > then I do some changes > > > > google.visualization.errors = {}; > > > /** > > > * Construtor > > > * @param {*=} opt_data > > > * @param {*=} opt_version > > > * @constructor > > > */ > > > google.visualization.DataTable = function(opt_data, opt_version){}; > > > /** > > > * @param {*=} container > > > * @constructor > > > */ > > > google.visualization.PieChart = function(container){}; > > > > Then compiler works without errors. > > > But when runs the web page I receive: "google.visualization is > > > undefined". > > > I put in my html file > > > <script type="text/javascript" src="https://www.google.com/jsapi"></ > > > script> > > > is this the correct way? I missed any thing? > > > > Thanks again; > > > > On 30 dez, 03:47, ChartMan <[email protected]> wrote: > > > > Try using this file:http://www.google.com/uds/modules/gviz/gviz-api.js > > > > And read about it here: > > >http://code.google.com/apis/chart/interactive/docs/dev/index.html > > > > > Note that it may be missing some of the newest methods and classes. > > > > > HTH > > > > ChartMan > > > > > On Fri, Dec 30, 2011 at 12:13 AM, Enio <[email protected]> wrote: > > > > > Hi to all. > > > > > I would like to know how use Gviz on google closure. > > > > > To use gmaps, for example, there are a .js file to use with complirer > > > > > --externs ../closure-compiler/contrib/externs/maps/ > > > > > google_maps_api_v3.js > > > > > > Are there some thing like that to gviz work with closure compiler? > > > > > > Thanks to all > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google Visualization API" group. > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-visualization-api?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Visualization API" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/google-visualization-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
