Skip to main content
100%

Scatterplot with v5

✓ Published0🌍 Public
Dd3noob
Last edited Nov 25, 2019
Created on Nov 25, 2019

This example shows a time-series line graph of stock closing prices, with circular scatterplot points overlaid on each data value. The visualization uses a steelblue line and dark circles to highlight individual daily observations across the date range. Built with d3 v5 and rendered as SVG, the code employs `d3.csv` to load the data, `d3.timeParse` for date formatting, and `d3.line` for the path, while `d3.scaleTime` and `d3.scaleLinear` handle the axes. The scatterplot points are appended as SVG circles positioned via the same x and y scales.

AI-generated description

This is a simple line graph demonstrating the addition of scatterplot points to a line graph. This was written using d3.js v5 and is a follow on to the simple graph example here.

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

mit Licensed

Similar vizzes