You'll have to get the DataView used by the chart out of the ChartWrapper. I assume you are referring to using an "onmouseover" event handler, so inside the handler, you would get the reference like this:
// grab the DataView used by the chart var view = chartWrapper.getDataTable(); // grab data from the view var foo = view.getValue(event.row, event.column); If you need to reference the base DataTable specifically, you can use the #getTableRowIndex method of the view, which returns the index in the DataTable/DataView passed to the Dashboard, eg: var baseRow = view.getTableRowIndex(event.row); There is also a corresponding #getTableColumnIndex method. On Monday, December 3, 2012 12:54:13 AM UTC-5, Babar Asghar wrote: > > Hi there! > > I am using dashboard, comboChart (primarily with bar series) with > chartRangeFilter. The event.row value returns row index according to what > is shown on chart. So with filter arranged so that filter.state.range.start > > minValue and (filter.state.range.end-filter.state.range.start) < > dataTableRowCount, if I hover over first bar on the left, it will always > return row=0; so how do I know the index in the whole dataset? > > Regards, > Babar > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/6f6Kr4W-fEYJ. 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.
