Hi Everyone, 

I've tried to put one chart timeline in my page and i've been 
disappointed...

i'd like to set language to portuguese ('pt') like code below:

-----------

<script type="text/javascript" src="https://www.google.com/jsapi";></script>

<script type="text/javascript">
  google.load('visualization', '1', {packages: ['timeline'], language: 
'pt'});
</script>   

<script type="text/javascript">

google.setOnLoadCallback(drawChart);
function drawChart() {
  var container = document.getElementById('example2.1');
  var chart = new google.visualization.Timeline(container);
  var dataTable = new google.visualization.DataTable();
  
  dataTable.addColumn({ type: 'string', id: 'Term' });
  dataTable.addColumn({ type: 'string', id: 'Name' });
  dataTable.addColumn({ type: 'date', id: 'Start' });
  dataTable.addColumn({ type: 'date', id: 'End' });
  
  dataTable.addRows([  
 ...data
   ]);
  
  chart.draw(dataTable  );
}
</script>

----------

It seems that my browser is with the correct location (analyzing the source 
code via Chrome Development Tool - Network) but the TimeLine doesn't make 
the right work...the words must to be "Janeiro Fevereiro Março Abril" 
instead of "January February ...."...

Is the string 'language' enough to build the right location? (Days, 
Months,...)

Thanks in advance.



-- 
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.

Reply via email to