google / google-visualization-issues

288 stars 35 forks source link

Google Gantt Chart - chart.setselection() request. #2119

Open adabadgh opened 8 years ago

adabadgh commented 8 years ago

Raising a request to add chart.setselection() functionality to the google gantt chart.

heennkkee commented 8 years ago

Looks at the documentation like it already exists? https://developers.google.com/chart/interactive/docs/gallery/ganttchart#methods

grabks commented 8 years ago

@heennkkee That part of the documentation page is the same for all charts. setSelection() is actually currently broken for Gantt (and the behavior of getSelection() is a bit surprising as well.)

heennkkee commented 8 years ago

That's true @grabks , I didn't even check if it was working, embarrasing enough.

Looks like the selection doesn't pass any data, just the event..

grabks commented 8 years ago

Not 100% sure what you mean, @heennkkee. The 'select' event never passes any relevant data. For any chart, we expect you to call chart.getSelection() when you get the 'select' event in order to get the selection. The issue with Gantt's getSelection is that it appears to return an array of empty objects, instead of them having some sort of identifier of what they are, like a row.

heennkkee commented 8 years ago

Hah, that's what I meant, of course, I should really start reading through my own post more carefully... My bad :) @grabks

crutchcorn commented 6 years ago

Is there any workaround for this? It seems as if this issue is still persisting today