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

network graph

Open Redhawk18 opened this issue 3 months ago • 8 comments

I was browsing the python website and I wanted to use this chart https://plotly.com/python/icicle-charts/

Let me know the details if this is planned, or not and if so if help is needed.

Redhawk18 avatar Sep 14 '25 22:09 Redhawk18

@Redhawk18 No, that is not implemented and not planned. If you want you can submit a PR. You can check how Polar was added recentrly (https://github.com/plotly/plotly.rs/pull/355) or Pie Charts (https://github.com/plotly/plotly.rs/pull/265) In general you can get away with implementing the Icicle trace struct with the minimum fields listed on Plotly.js figure reference https://plotly.com/javascript/reference/icicle/ or from here https://github.com/plotly/plotly.js/blob/e2abf6ee829edb263f843c9b22a698de6289d865/src/traces/icicle/attributes.js

andrei-ng avatar Sep 15 '25 17:09 andrei-ng

I had a change of requirements, the same process would apply to the network graphs right?

https://plotly.com/python/network-graphs/

Redhawk18 avatar Sep 16 '25 17:09 Redhawk18

I had a change of requirements, the same process would apply to the network graphs right?

https://plotly.com/python/network-graphs/

Unfortunately, plotly.js doesn't even support that. Seems to be a plotly.py unique trace. Fortunately, I think that if you need that, you can yourself build it from scatter trace with markers and lines.

andrei-ng avatar Sep 16 '25 19:09 andrei-ng

I'll try it and try to commit back an example if it works. A node graph is a powerful one to have

Redhawk18 avatar Sep 16 '25 19:09 Redhawk18

I'll try it and try to commit back an example if it works. A node graph is a powerful one to have

Totally agree. We could put it behind a newtork-graph trace and hide the implementation in there and make it as a first class citizen trace. Give me a heads up if you need my help

andrei-ng avatar Sep 16 '25 19:09 andrei-ng

Are there examples for these modules?

pub use scatter::Scatter;
pub use scatter3d::Scatter3D;
pub use scatter_geo::ScatterGeo;
pub use scatter_mapbox::ScatterMapbox;

or pictures, whatever is the most network graphly.

Redhawk18 avatar Sep 24 '25 21:09 Redhawk18

Have you checked https://plotly.github.io/plotly.rs/content/index.html

andrei-ng avatar Sep 24 '25 22:09 andrei-ng

There's a book...

Redhawk18 avatar Sep 25 '25 18:09 Redhawk18