we're currently exploring chorddiag in our lab to better display large proteomic and CRISPR screen datasets. Initial display of the diagram seems to work great. However, we have something of a basic question: is there any function built in to chorddiag which will allow a user who is interacting with the diagram to click a given chord and output a list or CSV of the resulting comparison? i.e. if one were to click the chord connecting Dataset A and Dataset B, it would give an output of overlapping values? We have looked through the chorddiag documentation but haven't seen anything obvious. If it's something we'll have to build on our own, that's fine - we just want to be sure before we accidentally reinvent the wheel.
Cheers!
Here is the diagram as it stands. We are interested in identifying some method whereby we click the highlighted chord and see the precise list of overlapping items that is represented by that chord (i.e. overlapping items between Dataset A and Dataset B).

You could add a
clickhandler to each of your chords (aka "ribbons"):Upon clicking on a chord, the CSV data for source/target/value will be printed to the console.
Full example
Below is a modified version of a complete Chord diagram. I added the click handler (as seen above) to the chords (aka "ribbons") that span between groups.