TL;DR
Grading D3 visualizations in large university courses is a time-consuming manual process. This paper introduces VisGrader, an automated system that precisely evaluates D3 visualizations for data bindings, visual encodings, and interactions, providing students with rapid, detailed feedback to improve their designs.
What Problem Does This Paper Address?
Teaching data visualization, particularly with powerful but complex libraries like D3.js, often involves assignments where students create interactive visualizations. Manually grading these assignments for hundreds of students is a significant bottleneck for instructors. This process is not only tedious but also challenging because it requires evaluating not just the correctness of data representation but also the nuances of interactivity, quantitative accuracy, and qualitative design. The sheer scale of large classes makes it impractical for instructors to thoroughly interact with and assess each student's submission, leading to delays in feedback and potential inconsistencies in grading.
Methods
VisGrader tackles this challenge by automating the grading process. Its workflow involves:
- Rendering and Auto-Interaction: The student's D3 visualization is rendered in a web browser, and the system automatically interacts with it (e.g., hovering, clicking) to trigger dynamic elements and reveal hidden information. This is achieved using Selenium's browser automation capabilities and Action Chains to simulate complex user interactions.
- Extracting Gradable Elements: The system analyzes the visualization's underlying Document Object Model (DOM) to extract key "gradable elements." This includes data points, visual encodings (like bar heights, colors, shapes), scales, and plot dimensions. The approach is designed to be flexible, allowing for variations in student designs.
- Generating Tailored Solutions: For each student submission, VisGrader generates a student-specific "solution" or expected output based on the assignment's requirements. This tailored solution acts as a benchmark.
- Comparison and Feedback: The extracted elements from the student's visualization are compared against the tailored solution. Any discrepancies are identified, and detailed feedback is generated. This feedback is delivered through the Gradescope platform, providing students with immediate insights into where their visualization falls short of the rubric requirements.
Datasets
Not discussed in the paper. The focus is on grading student-created D3 visualizations, not on training a model on a specific dataset.
Key Insights and Ideas
- Automating Interactivity is Crucial: D3's strength lies in its interactivity. VisGrader's ability to simulate user interactions (hover, click, drag) is key to evaluating these dynamic aspects, which traditional static analysis tools miss.
- Flexibility Over Rigidity: Instead of enforcing a single "correct" visualization, VisGrader is designed to accept variations in design (size, font, color, orientation) as long as the core data bindings and visual encodings are correct. This supports student creativity while still enabling automated grading.
- Leveraging Browser Automation: Using tools like Selenium for complex interaction sequences (Action Chains) is a novel application for automated visualization grading, allowing for sophisticated testing of dynamic elements.
- Gradescope Integration for Scalability: The use of the Gradescope platform is instrumental in handling large class sizes, enabling frequent submissions and rapid feedback loops for students.
Key Results
- Scalability: VisGrader has been successfully deployed in a large-scale D3 visualization course at Georgia Tech, grading over 72,000 submissions from more than 4,000 students across four semesters.
- Reduced TA Grading Hours: The system has led to a significant reduction in manual grading effort, estimated at 400 TA hours per semester.
- Virtual Elimination of Re-Grade Requests: Re-grade requests dropped by 98% after the implementation of VisGrader, largely due to consistent grading environments and clear feedback.
- Improved Student Learning: Evidence suggests improved student learning through more frequent iterations and better understanding of assignment requirements, indicated by a decrease in student questions on course forums.
- Enhanced Instructor Focus: TAs can now spend more time on qualitative feedback and student interaction rather than routine grading.
Limitations and Future Work
- Focus on Test Cases and Scores: A potential limitation is that students might focus solely on achieving a high score rather than deep learning. The quality of feedback is directly tied to the quality and coverage of the test cases.
- Limited Design Flexibility Grading: While flexible, the current system doesn't fully support grading "open-ended" assignments where students have complete freedom in choosing visualization types or interactions.
- Color Choice Feedback: The system currently has limited test cases for evaluating design choices like color palettes (e.g., colorblind-safe schemes).
- Future Work:
- Generalized Auto-Grading: Extending VisGrader to grade visualizations created with other libraries (Vega, Vega-Lite, Observable Plot) that also produce SVG.
- Incorporating Design Suggestions: Adding tests to provide feedback on accessibility (colorblind-safe, contrast, font size) and other design best practices, not as penalties but as learning opportunities.
- ML for Visualization Interpretation: Exploring machine learning methods to extract and interpret visualization content, potentially enabling more open-ended assignments and better design suggestions.
Summary updated