Skip to main content
100%

Line Chart with Multiple Lines

✓ Published3🌍 Public
MMounikaBeerelly
Last edited Jun 11, 2020
Created on Jun 11, 2020

This line chart displays a week of temperature readings across multiple cities, with each city represented by a distinct colored line from the d3.schemeCategory10 scale. The visualization uses d3.nest() to group data by city and d3.line() with curveBasis to create smooth paths, while d3.scaleTime() and d3.scaleLinear() map timestamps and temperatures to the SVG canvas. A custom colorLegend module renders the city labels, and the chart includes gridlines from axisBottom and axisLeft with tick marks. The data comes from a CSV file containing hourly temperature observations.

AI-generated description

This Scatter plot shows one week temperature in San Francisco.

MIT Licensed

Similar vizzes