The selection object references the selected row and column regardless of the presence of roles. Therefore, the selected column index won't necessarily correspond to the series index. You would have to build a map from column index to series index to keep track of this yourself. It would probably be useful if the API either provided the series index in the selection or provided a mapping function so you wouldn't have to keep track of it yourself.
On Thu, May 21, 2015 at 9:15 AM, Schabagh <[email protected]> wrote: > Hello forum, > > I have a problem with the roles and the selected items. > I have this example http://jsfiddle.net/smarti/owzh797r/3/ and it works > fine. I get the correct column number if I click one of the checkboxex or > series. But if I insert a role like { role: 'style' } in my DataTable I get > the wrong Colmn number if I click one of the checkboxex or series and > nothing works correctly. Anybody knows, what is wrong here? > > Thanks > > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 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. For more options, visit https://groups.google.com/d/optout.
