37. D3 Scale Plot Inverted
✓ Published1🌍 Public
This example demonstrates an inverted linear scale plot using D3.js. Ten data points, each represented as a circle and a red text label, are positioned on a 500x100 pixel SVG canvas. The visualization shows how the y-axis is flipped by mapping the domain’s maximum value to the bottom of the range and the minimum to the top, using `d3.scaleLinear()`. The circle radius is calculated as the square root of the height minus the y-value, creating a size variation tied to the data.
AI-generated descriptionMIT Licensed