As asgallant says, here is an example using a view, and setting the first
column to be the same as the rowIndex + 1:

function drawVisualization() {
  // Create and populate the data table.
  var data = google.visualization.arrayToDataTable([
    ['Name', 'Height', 'Smokes'],
    ['Tong Ning mu', 174, true],
    ['Huang Ang fa', 523, false],
    ['Teng nu', 86, true]
  ]);

  var view = new google.visualization.DataView(data);
  view.setColumns([{type: 'number',
                    calc: function(dt, rowIndex) { return rowIndex + 1 }}, 0
, 1, 2]);

  // Create and draw the visualization.
  visualization = new google.visualization.Table(document.getElementById(
'table'));
  visualization.draw(view, null);
}



On Mon, Mar 11, 2013 at 9:42 AM, asgallant <[email protected]>wrote:

> In the case of the table in the example, the first column is just the row
> number in the table, it isn't linked to any data in the DataTable.  If you
> want a number that represents rank, create a "number" type column in the
> table and put each player's rank in that column.
>
>
> On Monday, March 11, 2013 8:27:57 AM UTC-4, Willem-Siebe Spoelstra wrote:
>>
>> Hi,
>>
>> I want to collect highscores (with image upload as proof) with WordPress
>> plugin Formidable Pro (http://formidablepro.com/).
>> With this plugin I can collect data, this data will be saved into my
>> database.
>>
>> As you can see here 
>> (http://demo.formidablepro.**com/view-bugs/<http://demo.formidablepro.com/view-bugs/>)
>> there is Google Table integration with this plugin.
>>
>> What I see with the example's of Google Table is when you click on the
>> colum headers the numbers in the first colums stays the same.
>> See here: https://developers.**google.com/chart/interactive/**
>> docs/gallery/table<https://developers.google.com/chart/interactive/docs/gallery/table>
>> .
>>
>> This is not good for me, because that number should stay with the same
>> person because that is his place in the ranking.
>>
>> Is that possible, or not possible, with Google Table? And can anybody
>> point me in the right direction how to achieve this?
>>
>> Kind regards,
>>
>> Willem
>>
>>  --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   562D 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to