Hey Folks,
My want is straightforward, or so I thought.
WIthin a plotly_click event, I need to know context about the actual chart that was clicked on. Examples of this are the div id a value I stuffed into the plot options, or anything else that I can know about the grid prior to actual data binding.
Reviewing the contents I see we capture ‘data’ and ‘fullData’, but neither of these seem to know which chart they actually game from.
My use-case is as follows:
- I am dynamically generating a set of n plotly histograms, and assigning them unique IDs.
- These unique IDs are currently being set at the div id level, as well as passed as a placeholder value in options.
- Within .on(‘plotly_click’, function(event){/* Here! */}); I require being able to look up to see which of the dynamically generated grids this came from. The behavior in-application is contingent upon which grid was checked.
After debugging for the last couple of hours, I’ve made little inroads, and wanted to see if this is a solved problem or something that isn’t currently supported at all.
Cheers.