I'm trying to modify a bar chart's JSON by adding a customdata object that I can use in the hovertemplate. When I do that though, the selectedPoints seems to remove the "group" element from the chart's state.
Reverting the plot.ly json edits seems to fix the selectedPoints problem, but then I can't adjust the hover text or customdata...
See screenshots below for UI with the desired selectedPoints state and plot.ly JSON with the desired hover behavior but not the selectedPoints.