hski-github / spotfire-sankey-diagram

Spotfire mods visualization for Sankey diagram
MIT License
4 stars 4 forks source link

Marking multiple flows with rectangle selection #13

Open arnaudspotfire opened 3 years ago

arnaudspotfire commented 3 years ago

Marking currently works great for one single flow. It would be nice to be able to mark multiple onces by drawing a rectangle.

Screen Shot 2021-05-21 at 15 03 20

hski-github commented 3 years ago

Because I am using plain SVG I have to implement this with plain SVG and JavaScript.

Is there maybe some sample code from TIBCO?

arnaudspotfire commented 3 years ago

You could look at the Word Cloud Mod that was just released today on the Community Exchange. Here is the GitHub repo: https://github.com/jacobsjan/WordCloud2 Another suitable example could be the Spider Chart Mod here: https://github.com/TIBCOSoftware/spotfire-mods/tree/master/examples/ts-spiderchart-d3

hski-github commented 3 years ago

https://github.com/TIBCOSoftware/spotfire-mods/issues/31

hski-github commented 3 years ago

World Cloud example https://github.com/jacobsjan/WordCloud2/blob/master/src/rect-selection.ts

hski-github commented 2 years ago

Same request for Kanban https://github.com/hski-github/spotfire-kanban/issues/6

Maybe possible to use this JavaScript library to implement the rectangle selection https://github.com/Simonwep/selection/tree/master/packages/vanilla

hski-github commented 2 years ago

Should be possible to mark bars with rectangle select as well as flows.