Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Graph Discovery Visualization #28

Open
JacobLinCool opened this issue Nov 11, 2022 · 5 comments
Open

Graph Discovery Visualization #28

JacobLinCool opened this issue Nov 11, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@JacobLinCool
Copy link
Member

I want a button that can switch to "Graph Discovery" mode on the course search page.

graph

I want a boundless and draggable canvas, just like Whimsical.

When I click an entity / course / teacher, the canvas then focuses on the element and shows extra relationships (extend the currently displayed graph, use lower opacity to represent some "far" elements.)

This seems to be blocked by UniCourse-TW/Backend#19, but I am interested in this cool and exciting feature.

If anyone wants to work on this feature or has some idea about it, don't hesitate to discuss it here.

@JacobLinCool JacobLinCool added the enhancement New feature or request label Nov 11, 2022
@uier
Copy link
Contributor

uier commented Nov 11, 2022

Great idea

To achieve this, we have to define the network (the links connecting two entities).

I saw keyword "forest" in backend issue you specified, does the forest is able and available to construct such network now? Or network constructing is another new requirement?

@JacobLinCool
Copy link
Member Author

The links between entities, teachers, and courses have been defined in the backend models.

The word "forest" only points out that our system allows multiple entity roots. It should not become a problem because we can always see our forest as a tree (null as the root) since every parent_id of roots is null.

The problem is that we do not expose an interface to "translate" actions to ORM query. (Just an extra piece of information, recursive search should not be a problem because there is a POC UniCourse-TW/Backend@647a49f that works.)

@uier
Copy link
Contributor

uier commented Nov 15, 2022

This example meets some of the needs.

@uier
Copy link
Contributor

uier commented Nov 18, 2022

This example meets some of the needs.

It's currently undraggable because draggable attribute only work with layout: 'force' while above chart is layout: 'none'

Luckily, they add new feature to make node draggable in other layout (none, circular), so based on this PR, this feature will release in 5.4.1

@uier
Copy link
Contributor

uier commented Dec 15, 2022

Rich graph visualization library: https://github.com/antvis/G6
this example supports:

  • dragging
  • show detail of focused node
  • highlight neighbor nodes of focused node

@uier uier self-assigned this Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants