Visualization Library Decision Tree
Run the Visualization Library Decision Tree Fullscreen Edit the MicroSim Using the p5.js Editor
Description
This interactive MicroSim helps learners navigate the decision-making process of selecting the appropriate JavaScript visualization library for their educational simulations (MicroSims). By answering a series of questions about the content type and requirements, users are guided to the most suitable library for their needs.
Features
- Interactive Decision Tree: Click through decision nodes to navigate the flowchart
- Visual Path Highlighting: See your decision path highlighted in green
- Library Information: Hover over or select library nodes to see detailed descriptions
- Direct Library Selection: Click any library endpoint to see its path and description
- Reset Button: Start over at any time to explore different paths
Library Options
The decision tree guides users to one of seven visualization libraries:
| Library | Best For | Color |
|---|---|---|
| p5.js | Creative coding, animations, physics simulations | Pink |
| Chart.js | Simple charts (bar, line, pie, doughnut, radar) | Orange |
| Plotly | Scientific plots, 3D charts, mathematical functions | Blue |
| vis-network | Network graphs, concept maps, hierarchies | Teal |
| vis-timeline | Timelines, Gantt charts, event sequences | Green |
| Leaflet | Interactive maps, geographic data | Forest Green |
| Mermaid | Flowcharts, sequence diagrams, workflows | Purple |
Decision Flow
- Start: What type of content do you want to visualize?
- Animation/Physics: Is it animated or physics-based? Yes leads to p5.js
- Data/Statistics: Is it data or statistics? Yes continues to math function check
- Math Functions: Need mathematical functions? Yes leads to Plotly, No leads to Chart.js
- Relationships: Does it show relationships or networks? Yes leads to vis-network
- Time-based: Is it time-based or chronological? Yes leads to vis-timeline
- Geographic: Is it geographic or location-based? Yes leads to Leaflet, No leads to Mermaid
Embedding This MicroSim
You can include this MicroSim on your website using the following iframe:
1 | |
Lesson Plan
Objective
Students will understand the characteristics of different JavaScript visualization libraries and be able to select the appropriate library for various types of educational content.
Activities
-
Exploration (5 minutes): Have students navigate through the decision tree multiple times, exploring different paths to discover all seven library endpoints.
-
Discussion (10 minutes): As a class, discuss:
- Why is p5.js recommended for animations while Chart.js is for static data?
- What makes vis-network better for relationships than a standard chart library?
-
When would you choose Plotly over Chart.js for data visualization?
-
Application (15 minutes): Give students a list of visualization scenarios and have them use the decision tree to determine the appropriate library:
- A bouncing ball simulation (p5.js)
- Student grade distribution (Chart.js)
- Historical timeline of scientific discoveries (vis-timeline)
- Concept dependency map for a course (vis-network)
-
Map showing school locations (Leaflet)
-
Analysis (10 minutes): Have students identify a topic from their own studies and determine which visualization library would be most appropriate, justifying their choice based on the decision criteria.
Assessment
Students demonstrate understanding by correctly identifying appropriate visualization libraries for given scenarios and explaining their reasoning based on content characteristics.