Skip to main content
100%

Making a line chart

✓ Published2🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 3, 2019
Forked from Making a bar graph

This example displays a scatterplot of automotive data, plotting horsepower on the x-axis and weight on the y-axis, with each car represented by a circle. It uses D3 v5’s `scaleLinear` for both axes and `max` from `d3` to compute the domain extents. The visualization is rendered as SVG, with circles appended to the svg element and positioned via `cx` and `cy` attributes. The data is loaded from a CSV file via `csv`, with numeric fields converted before rendering.

AI-generated description
MIT Licensed

Similar vizzes