i am trying to make a columnchart for the data based on datetime. all i need
is the earliest person should have smallest bar and so on ..
here is the code that i am trying on AJAX play ground but it is not
rendering ..
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('datetime', 'arrival');
data.addRows(3);
data.setCell(0, 0, 'muhammad');
data.setCell(0, 1, new Date(2008, 1, 28));
data.setCell(1, 0, 'ali');
data.setCell(1, 1, new Date(2008, 1, 29));
data.setCell(2, 0, 'amin');
data.setCell(2, 1, new Date(2008, 1, 30));
var formatter = new google.visualization.DateFormat({formatType: 'long'});
formatter.format(data, 1);
new google.visualization.ColumnChart(document.getElementById(
'visualization')).
draw(data, null);
}
can someone please help me .. ? what wrong i am doing.
regards,
..alee
http://techboard.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---