Untitled
✓ Published0🌍 Public
This example shows a scatterplot of data points colored by alignment (yes/no) that can be zoomed along the x-axis using a brush. The visualization loads CSV data and renders circles with an SVG, using d3.brushX to let users select a horizontal range, which then updates the x-axis domain and repositions the circles with a transition. The code uses d3.scaleLinear for axes, d3.scaleOrdinal for colors, and a clipPath to confine the brush and points to the plotting area. Data comes from a remote GitHub CSV file.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed