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

Add tree-like visualization #42

Open
EgorBu opened this issue Aug 27, 2017 · 6 comments
Open

Add tree-like visualization #42

EgorBu opened this issue Aug 27, 2017 · 6 comments

Comments

@EgorBu
Copy link

EgorBu commented Aug 27, 2017

Hi,
I used dashboard a bit and found that it's still hard to understand.
When you use UAST from bblfsh as text - it's really verbose (even if you hide some attributes of nodes).

@mcuadros
Copy link
Contributor

@mcuadros mcuadros changed the title [improvement] add tree-like visualization add tree-like visualization Sep 19, 2017
@smacker
Copy link
Collaborator

smacker commented Dec 12, 2017

I did some investigation. Looks like the best choice for visualization library using with react is simple d3. I tried to render java example:

Hover on node:
screen shot 2017-12-12 at 1 24 25 pm

Expand all nodes:
screen shot 2017-12-12 at 1 44 18 pm

@mcuadros
Copy link
Contributor

mcuadros commented Dec 14, 2017

I think that the internalType of the nose should be a label, like in the example I pasted, unless is a mess. The idea is visualize the hierarchy, and maybe have color codes for the roles

@smacker
Copy link
Collaborator

smacker commented Dec 14, 2017

I removed internalType because it looked like a mess. I see 4+ children quite often in examples and internalType is long often too, like "SingleVariableDeclaration". But of course it's not final solution. We will experiment with different visualization more. It was more like a technical investigation, how to integrate library in react without breaking vdom and reuse tree state.

@bzz
Copy link
Contributor

bzz commented Jun 11, 2018

Has some AST visualization example https://code2vec.com/

@marnovo
Copy link

marnovo commented Jun 12, 2018

@ricardobaeta

@EgorBu EgorBu changed the title add tree-like visualization Add tree-like visualization Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants