Hi,
I am working on a pie chart. There are some Spanish and Portuguese
will display in legend, but it gives me messy code display.
I have tested it in 'Google code playground', it did NOT work either,
I attached code here, Can someone give me a help for that? Thanks!
// code
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Bookings');
data.addColumn('number', 'bookings per person');
data.addRows(5);
data.setValue(0, 0, 'Paulo Galão'); // cannot displayed well
data.setValue(0, 1, 11);
data.setValue(1, 0, 'Terry Smith');
data.setValue(1, 1, 2);
data.setValue(2, 0, 'Peter Cech');
data.setValue(2, 1, 2);
data.setValue(3, 0, 'Ronaldo');
data.setValue(3, 1, 2);
data.setValue(4, 0, 'Nicky Butt');
data.setValue(4, 1, 7);
// Create and draw the visualization.
new
google.visualization.PieChart(document.getElementById('visualization')).
draw(data, null);
}
//:~
--
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.