plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Chord Diagram in v4?

Open guettli opened this issue 5 years ago • 7 comments

Thanks for your developing plotly.py!

There is a description how to create a chord diagram for version3:

https://plotly.com/python/v3/filled-chord-diagram/

It would be nice to have this for version4, too.

guettli avatar Dec 17 '20 15:12 guettli

Just for the records, I found the holoviews Chord, which looks good: https://holoviews.org/reference/elements/bokeh/Chord.html

guettli avatar Dec 17 '20 16:12 guettli

Also interested in Chord diagrams in v4

kurt-rhee avatar Aug 01 '21 14:08 kurt-rhee

I also would like a Chord graph feature since other visualization packages already have it.

mirk-00 avatar Mar 14 '22 14:03 mirk-00

Should we understand it is no longer a working supported part of later versions of plotly?

matanox avatar Dec 10 '23 04:12 matanox

That example will still work, but it's awfully cumbersome. We wouldn't be opposed to adding chord diagrams to plotly.js / .py, but there's already a Circos component in dash-bio that makes full-featured chord diagrams https://dash.plotly.com/dash-bio/circos

alexcjohnson avatar Dec 10 '23 14:12 alexcjohnson

Thanks for the reference. Circos was probably the first to introduce chord diagrams for the masses, it is probably the most versatile today I would guess. What are your cons and pros for switching to use dash though?

matanox avatar Dec 11 '23 05:12 matanox

Pros: you get access to a whole bunch more types of visualization that don't exist in plotly.js/.py (see also dash-cytoscape, dash-vtk, dash-leaflet... there's a ton out there) and you can hook them up to each other in ways that can make data exploration more efficient.

Cons: A bit of boilerplate because you need to create a Dash app to put the component into, and that app keeps an extra process running in order to serve interaction callbacks. If you want to run inside Jupyter see https://dash.plotly.com/dash-in-jupyter. FWIW We're exploring some ideas to simplify this, but no timeline as yet.

alexcjohnson avatar Dec 11 '23 20:12 alexcjohnson