Skip to main content
100%

46. D3 Axes Random

✓ Published1🌍 Public
Aamakanju@nyit.edu
Last edited Feb 27, 2026
Created on Feb 9, 2026
Forked from 45. D3 Axes Y

This example demonstrates how D3.js v4.5.0 dynamically generates axes based on the minimum and maximum values of a randomized dataset. The code creates 50 random data points with varying ranges, then displays them as circles with radii scaled by their y-values, along with red text labels. Using `d3.scaleLinear` for x and y positions, `d3.scaleSqrt` for circle sizes, and `d3.axisBottom` and `d3.axisLeft`, the visualization renders in an SVG element with both axes showing five ticks each.

AI-generated description
MIT Licensed

Similar vizzes