EP05 | 學會 D3.js 製作圖表 - 製作散佈圖(Scatter Plot)溫度與日期
✓ Published1🌍 Public
CCeleste6666
Last edited Nov 10, 2021
Created on Nov 9, 2021
Forked from EP04 | 學會 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.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed