Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add data attributes data-from-id and data-to-id to g class='edgeLabel' svg / make it clickable in flowchart #5497

Open
d2a-raudenaerde opened this issue May 1, 2024 · 2 comments
Labels
Graph: Flow Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@d2a-raudenaerde
Copy link

d2a-raudenaerde commented May 1, 2024

Hi,

I'm trying to make an interactive flowchart, where my customers can click on the edges to filter data based on that transition.

However, there is no link between the rendered svg and the edge labels (there is info for the paths, in the id attribute, but paths are hard to click on, and the label overlaps the paths, so users can't click there).

Please add one (or two) data attibutes, preferably: data-from-id and data-to-id or similar with the id of the nodes (the nodes data-id).

@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label May 1, 2024
@d2a-raudenaerde d2a-raudenaerde changed the title Please add data-edge-id to g class='edgeLabel' svg / make it clickable in flowchart Please add data attributes data-from-id and data-to-id to g class='edgeLabel' svg / make it clickable in flowchart May 1, 2024
@d2a-raudenaerde
Copy link
Author

For an example flowchart that I'd like to have:
image

@d2a-raudenaerde
Copy link
Author

Should be somethin along these lines:

edgeG.attr('data-from-id', edge.sourceId);
edgeG.attr('data-to-id', edge.targetId);

On r665 in flowRenderer-elk.js

@nirname nirname added Type: Enhancement New feature or request Graph: Flow labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Flow Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants