Skip to main content
100%

D3 Course 13: Line Chart with Multiple Lines

✓ Published1🌍 Public
GGabrz
Last edited May 13, 2020
Created on May 13, 2020

This line chart displays temperature readings over time across multiple cities, with each city represented by a distinct colored line and a sorted color legend. The visualization uses D3 v5 APIs including `d3.nest()` to group data by city, `d3.line()` with `curveBasis` for smooth paths, and `scaleOrdinal` with `schemeCategory10` for colors. Data loads from a CSV file containing one week of sensor measurements. The chart applies blended stroke modes and rounded line caps for aesthetic distinction.

AI-generated description

Data Visualization with D3 course; Line Chart with Multiple Lines

<h3>Line Chart with Multiple Lines</h3> <table> <th align="left">Topics</th> <tr> <td> <ul> <li><b>Using d3.nest</b></li> <li><b>Rendering multiple lines</b></li> <li><b>Making lines different colors</b></li> <li><b>Aesthetics: line caps, blending modes</b></li> <li><b>Adding a color legend</b></li> <li><b>Sorting the color legend to match lines</b></li> </ul> </td> </tr> </table>
MIT Licensed

Similar vizzes