Sunburst: onclick events with non-terminal nodes

Hey Folks,

Does anyone know if there’s an option to have an onclick event associated with something in a sunburst that isn’t a terminal leaf? I can get click events working just fine using “data.points[]…”, but these only apply to terminal leaves, it looks like. When I add my click event to display additional info associated with the elements that are interior (the categories and sub-categories), nothing happens to the other elements I’ve associated with the click event. The viz itself does what I want it to do, but it would be sweet if I could do something like have a description display in another div that tells people what the category generally contains, or maybe show a table of everything under the category that changes dynamically based on the category I clicked in the viz.

Anybody know how to do something like that within Plotly?

Thanks,
Jacob

Here’s how: https://codepen.io/etpinard/pen/eYYparg