EP05 | 學會 D3.js 製作圖表 - 製作散佈圖(Scatter Plot)溫度與日期
This example charts daily temperatures for September 2021 as a scatter plot, using a time-scaled x-axis for dates and a linear y-axis for degrees Celsius. Built with D3 v7, it loads data from a CSV file, parses date strings, and renders green circles onto an SVG canvas. The code explicitly uses `scaleTime`, `scaleLinear`, `axisLeft`, `axisBottom`, `timeFormat`, and `extent` to position points and generate gridlines. A title and axis labels are added in CSS-styled text, while margins and tick customization create a clean, readable layout.