Your code has a few things that you need to fix. First, <html>, <head>,
and <body> are not valid child elements of <body>, so you must remove these
tags from around each of your charts. Second, each function needs a unique
name, so you should rename your drawChart functions something like
drawChart1 and drawChart2 (or whatever you want to call them, as long as
they are unique). Third, you should call google.load and
google.setOnLoadCallback only once. You can load multiple packages in the
loader and use an intermediary function to call multiple draw functions
from the callback:
google.load("visualization", "1", {packages:["corechart", "table"]});
google.setOnLoadCallback(function () {
drawTable();
drawChart1();
drawChart2();
});
Without seeing the code that fails, I cannot say for certain what is making
the second Table fail to draw. Fix these issues, then if the Table still
isn't working, post a link to the page with updated code (including the
Table code that fails).
On Wednesday, February 12, 2014 1:25:47 PM UTC-5, sequenese wrote:
>
> Let me explain:
> Have a look at this
>
> http://www.testdce.es/camacoesChile/index.php/internacionalizacion/estadisticas-de-importaciones-y-exportaciones
> The charts are in the three tabs.
> In the third tab if I substitute the pie chart for a table chart, it
> dissapear.!
>
>
>
> El miércoles, 12 de febrero de 2014 19:02:44 UTC+1, sequenese escribió:
>>
>> When I try to put two charts, for example, two table charts in the same
>> page it's only show me one.
>>
>>
--
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/groups/opt_out.