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

Cluster nodes by company affiliation #36

Open
6 of 10 tasks
Crista2019 opened this issue Nov 4, 2019 · 3 comments
Open
6 of 10 tasks

Cluster nodes by company affiliation #36

Crista2019 opened this issue Nov 4, 2019 · 3 comments
Assignees

Comments

@Crista2019
Copy link
Contributor

Crista2019 commented Nov 4, 2019

Add functionality that groups nodes of the network into clusters based on company affiliation (example https://bl.ocks.org/Andrew-Reid/976e51f97cffa1835bc03ca80c428ee7).

Steps:

  • Add attribute 'affiliation' to Person object on backend (in addition to values like name, docs, etc)
  • Randomly assign a company (out of 4 or so possible companies) to each person
  • Group nodes in d3 code into arrays by affiliation
  • Implement clustering with four foci
  • Implement clustering with n foci (n = number of companies in the dataset)
  • Set node color depending on company
  • Label company clusters
  • Add react selector to turn clustering by company on or off
  • fix shivering nodes
  • place unaffiliated nodes in a format that is informative

There may be more intermediate steps here, some of which could probably be turned into different issues, so feel free to do so as you see fit.

@Crista2019 Crista2019 added backend Issues in the backend system frontend Issues in the frontend system labels Nov 4, 2019
@Crista2019 Crista2019 removed backend Issues in the backend system frontend Issues in the frontend system labels Nov 4, 2019
@Crista2019
Copy link
Contributor Author

We are currently working on this on the affiliations_cluster branch

@Crista2019
Copy link
Contributor Author

At the moment, the nodes are centered around four foci, but the mechanism for doing so causes the screen to zoom in each time (because the render_simulation function gets called repeatedly perhaps?). Moving forward, it would be good to work on setting and moving the nodes without zooming in to the center indefinitely.

FourFocirImperfectVersion

@Crista2019
Copy link
Contributor Author

We are now working on the new affiliations_visualizations branch. Some recent changes there include updates to color based on company affiliation that Jordan worked on, and a dynamic change to graph size upon screen resize I just committed today.

Here are just some random screenshots to represent the changes:
fullscreennodescluster
halfscreennodesclusterhorizontal
halfscreennodesclustervertical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants