Hi Wilson, For the Table, you would have to do this using CSS and the cssClassNames option. Here is an example: https://jsfiddle.net/79j0x97m/
On Sat, May 16, 2015 at 4:56 PM Wilson Rogério Braun <[email protected]> wrote: > How can I change the font size of the table in the code below? > > <script type="text/javascript"> > var value; > google.load("visualization", "1", { packages: ["table"] }); > google.setOnLoadCallback(function () { drawtable('') }); > $(document).ready(function () { > value = $("#animal").val(); > if (value != undefined) { > drawtable(value); > } > $("#animal").change(function () { > value = $(this).val(); > drawtable(value); > }); > }); > function drawtable(codigo) { > var url = '/Programa_Imunizacao/Principal/RetornaIdade/' + > codigo; > $.get(url, {}, > function (data) { > var tdata = new google.visualization.DataTable(); > tdata.addColumn('date', 'DATA NASCIMENTO'); > tdata.addColumn('string', 'IDADE ANO(S)'); > tdata.addColumn('string', 'IDADE MES(ES)'); > tdata.addColumn('string', 'IDADE SEMANA(S)'); > for (var i = 0; i < data.length; i++) { > if (data[i].data_Nasc != null) > > tdata.addRow([ToJavaScriptDate(data[i].data_Nasc), > (data[i].IDADE_ano).toString(), (data[i].IDADE_mes).toString(), > (data[i].IDADE_semana).toString()]); > } > var table = new > google.visualization.Table(document.getElementById('Tabela_idade')); > table.draw(tdata, { showRowNumber: true }); > }); > > } > </script> > > -- > 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. > -- 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.
