Skip to main content
100%

Scatterplot with v6

✓ Published0🌍 Public
Dd3noob
Last edited Sep 12, 2020
Created on Sep 12, 2020

This scatterplot overlays a line chart to show the trend of stock closing prices over time. A steelblue line connects the chronological data points, while small circles highlight the individual daily values from the CSV file. The visualization uses D3 v6 with `d3.scaleTime`, `d3.line`, and `d3.axisBottom` to construct the axes and paths. The SVG rendering is driven by `d3.select` and attaches circles through `enter().append("circle")` to mark each data point. The x-axis maps dates while the y-axis scales the closing prices from the data.csv source.

AI-generated description

This is a simple line graph demonstrating the addition of scatterplot points to a line graph.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.

mit Licensed

Similar vizzes