I had this problem, and I just ended up making a new datatable and
using javascript to populate it according to Google's structure.

So, something like:
newTable.addColumn('number', 'Sr No');
newTable.addColumn(...)
...

var newrow = new Array();

for (var c = 0; c < serverdata.getNumberOfColumns(); c++)
{
   for (var r = 0; r < serverdata.getNumberOfRows(); r++)
   {
      newrow[r] = serverdata.getValue(r, c);
   }
   newTable.addRow(newrow);
}

On Aug 27, 8:54 am, hemant solanki <[email protected]> wrote:
> if there is no such option to develop table in this manner, can i use other
> gadgets which facilates me in this manner..........or ny other options to
> develop this type of design of table.....
>
> On Thu, Aug 27, 2009 at 5:45 PM, ChartMan <[email protected]> wrote:
> > So what you are requesting is a transpose operation. Google visualization
> > is based on a column based tables. And in your case the result is a non
> > valid table and so there is no such operation we support.
> > If you control the server you are of course able to perform this operation
> > your self.
>
> > ChartMan
>
> > On Thu, Aug 27, 2009 at 1:45 PM, hemant solanki <[email protected]>wrote:
>
> >> Thnx for reply we are getting the data from server location........
>
> >> On Thu, Aug 27, 2009 at 3:01 PM, ChartMan <[email protected]> wrote:
>
> >>> Are you getting the data from a server or are you generating it by your
> >>> self using java script?
>
> >>> ChartMan
>
> >>> On Wed, Aug 26, 2009 at 7:24 PM, Hemant <[email protected]> wrote:
>
> >>>> Greetings
> >>>> I want to know can I change the pattern of displaying records in
> >>>> DataTable.....
> >>>> DataTable Displays Data in Form of
>
> >>>> Sr. No    Name
> >>>>  1         Hemant
>
> >>>> Can I change this pattern into :-
>
> >>>> Sr No  1
> >>>> Name  Hemant
>
> >>>> If yes than how..
> >>>> Please Help.......
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to