turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Graph output made interactive

Open IPWright83 opened this issue 3 years ago • 2 comments

Describe the feature you'd like to request

I'd like the generated graph from running the graph to be understandable when there is a very large graph. At the moment you can only zoom into the top left corner. This example is unusable:

image

Describe the solution you'd like

It would be great if the command to produce the graph spat out something interactive that I can at least pan around and zoom into.

Describe alternatives you've considered

You could generate an image too, but I don't think this would be as useful.

IPWright83 avatar Sep 20 '22 08:09 IPWright83

I could potentially find some time to work on the webpage side of this - would be happy to produce a force directed graph in D3.js for example if that's of interest? But I'd need some guidance on how to hook it up to the Go command.

IPWright83 avatar Sep 20 '22 08:09 IPWright83

I think getting a webpage that's dedicated to rendering turbo generated DOT files would be amazing. I think it would make sense to use the flow we use for turbo login to open up a browser pointed to the webpage with the DOT file loaded. I would be happy to help on the Go side.

chris-olszewski avatar Sep 21 '22 22:09 chris-olszewski

@chris-olszewski I was thinking of just replacing the HTML output to include something with some JavaScript support? I don't think it'd be prudent to modify the existing output formats.

IPWright83 avatar Sep 23 '22 13:09 IPWright83