在Google Charts API中,如何获取数据表中单元格的值?

Jon*_*han 3 api google-visualization

我可能只是累了,但似乎无法拉出Google Charts API DataTable中单个单元格的值。我猜想是这样的:

DataTable.getCell(row,col);

我只是忽略了一些非常幼稚的东西吗?

这是我一直在使用的API参考:http : //code.google.com/apis/chart/interactive/docs/reference.html

Dav*_*her 5

我相信你想要getValue()

http://code.google.com/apis/chart/interactive/docs/reference.html#DataTable_getValue

  • 你知道,我也有过这样的一天。 (2认同)