Skip to main content
100%

reusable charts

✓ Published0🌍 Public
AAnshul Rawat
Last edited Jan 16, 2024
Created on Jan 16, 2024
Forked from D3 scatterplot

This example demonstrates a reusable scatterplot component that visualizes the Iris flower dataset, plotting petal length against sepal length. The chart is implemented as a configurable function using D3.js APIs including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom`, with data loaded via `d3.csv`. The component pattern allows setting properties like width, height, margins, and accessor functions through method chaining, while SVG circles represent individual data points. The visualization fills the browser window, adapting to the viewport dimensions, and renders axes with styled tick labels.

AI-generated description
MIT Licensed

Similar vizzes