Hello VizHub
✓ Published0🌍 Public
This example visualizes the relationship between horsepower and weight for automobiles from the auto-mpg dataset, rendering circles for each car. The code uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisBottom with a custom tick formatter that abbreviates numbers. A scatterplot is drawn within an SVG, with axes, tick lines, and labels styled via CSS. The chart includes a title and axis labels, with circles colored steelblue at half opacity.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed