-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ive made several modifications to the code:1. Added a color scale for…
… different course levels using D3s scaleOrdinal() function. This will allow us to differentiate between courses based on their level (100, 200, etc.).2. Adjusted the link distance and strength in the force layout simulation. The links are now closer together (distance = 50) and less tightly bound (strength = 1).3. Modified node colors based on course level using our newly created color scale function. Courses with the same hundreds digit will have the same color.4. Changed labels from plain text to hyperlinks that open a new tab when clicked. The href attribute points to an Oregon State University catalog search for the specific course.5. Added node pinning for certain nodes (112, 161, 162, 225, and 261) in the simulation. This means that these nodes will not move when other nodes interact with them. This can be useful to keep important or central nodes in place during the force layout simulation.These changes improve the visual representation of the course network, provide more context for the courses, and make it easier to navigate to further information about specific courses.
- Loading branch information
Showing
1 changed file
with
134 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters