Fork of D3 Starter - vijq2(line chart)
✓ Published1🌍 Public
A line chart visualizes the relationship between study hours and exam scores for a dataset of 120 students. The chart plots study hours along the x-axis and exam scores along the y-axis, with individual data points rendered as blue circles and a smooth monotone curve connecting them. The visualization uses the D3.js v7 library, specifically the `d3.line()` generator with the `curveMonotoneX` curve option, and renders as an SVG. Interactive tooltips display the exact values for each point on hover, implemented via mouse event listeners. The data, containing study hours, exam scores, and letter grade categories, is loaded from a CSV file using `d3.csv()`.
AI-generated descriptionMIT Licensed