:) i was thinking the same reason .. but all i needed was a confirmation. thanks a lot :) ..alee http://techboard.wordpress.com
On Wed, Mar 4, 2009 at 6:22 PM, VizBoy <[email protected]> wrote: > Hi, > > This won't work because the Bar Chart needs numeric values to understand > how tall the bar should be. > A formatted date is still a date, and is not a number. > > Regards, > VizBoy. > > > On Wed, Mar 4, 2009 at 3:12 PM, alee amin > <[email protected]>wrote: > >> 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 -~----------~----~----~----~------~----~------~--~---
