Making a line chart
✓ Published2🌍 Public
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 descriptionMIT Licensed