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

Animate cases over time #192

Closed
merlijnbuit opened this issue Apr 15, 2021 · 3 comments
Closed

Animate cases over time #192

merlijnbuit opened this issue Apr 15, 2021 · 3 comments
Labels
not an issue Asking for help or other discussions

Comments

@merlijnbuit
Copy link

merlijnbuit commented Apr 15, 2021

Hi,

I am curious if it is possible to animate cases over time through the graph?
This animation is from a Process Mining tool.
17e97e4eeb9979fd94cbaa45633d9213

@magjac
Copy link
Owner

magjac commented Apr 15, 2021

I'm not sure I understand exactly what you're asking about, but I think that it should be possible. To say more, I would need to know more about your input data.

@merlijnbuit
Copy link
Author

The idea is that cases are going through the process over time. At some point the difference in seconds between step A and step B is large and cases would pile up.

What would be a good starting point to look at?

The other tool describes it as follows:
Screenshot 2021-04-15 at 11 47 27

@magjac
Copy link
Owner

magjac commented Apr 15, 2021

If what you want is a static graph with just the dot moving along the edges I would suggest:

  1. Render the graph once with d3-graphviz
  2. Use D3 to add and animate the dots along the edges. To say more, I would need to know more about your input data.

That said, for static graphs, the only benefit that d3-grapvhiz offers compared to e.g. https://www.npmjs.com/package/@hpcc-js/wasm is zooming, so if you don't need that, d3-graphviz has nothing extra to offer you.

@magjac magjac added the not an issue Asking for help or other discussions label May 10, 2021
@magjac magjac closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue Asking for help or other discussions
Projects
None yet
Development

No branches or pull requests

2 participants