Lab 7 - Interactivity
This line chart displays the daily average temperatures of New York, San Francisco, and Austin over one year, with three colored lines representing each city. Built with D3 v4 and rendered as SVG, it uses conventional margins, time and linear scales, and categorical color encoding. The visualization leverages d3.tsv for data loading, d3.time.format for date parsing, and d3.svg.line for path generation, with axes and legends from D3's SVG utilities.
AI-generated descriptionThis line chart is constructed from a TSV file storing the daily average temperatures of New York, San Francisco and Austin over the last year. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.time.format - parse dates
- d3.time.scale - x-position encoding
- d3.scale.linear - y-position encoding
- d3.scale.category10, a d3.scale.ordinal - color encoding
- d3.extent, d3.min and d3.max - compute domains
- d3.keys - compute column names
- d3.svg.axis - display axes
- d3.svg.line - display line shape
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3884955'>Lab 7 - Interactivity</a>
forked from <a href='http://bl.ocks.org/ngchwanlii/'>ngchwanlii</a>'s block: <a href='http://bl.ocks.org/ngchwanlii/74508bd80399640bd470e361474364c4'>Lab 7 - Interactivity</a>
forked from <a href='http://bl.ocks.org/Thanaporn-sk/'>Thanaporn-sk</a>'s block: <a href='http://bl.ocks.org/Thanaporn-sk/5bf737b02669661726d38831501d864f'>Lab 7 - Interactivity</a>
forked from <a href='http://bl.ocks.org/ConorAspell/'>ConorAspell</a>'s block: <a href='http://bl.ocks.org/ConorAspell/804426b8715a2f66f6f11c89e7c2506c'>Lab 7 - Interactivity</a>