graph1
This interactive line chart displays daily temperature readings for Austin, Boston, and Arizona in both Fahrenheit and Celsius, with a dropdown menu to switch between the two units. The visualization uses d3.v5 to load the CSV data, parse dates, and render an SVG with a time-scaled x-axis and linear y-axis. Users can hover over the chart to see a vertical guide line, date label, and value annotations for each city. The code employs d3.scaleTime, d3.scaleLinear, d3.line with curveCardinal, and d3.axisBottom/Left, along with transitions to animate axis and line updates when the metric changes.