Skip to main content
100%

Solar_System_Bar_Graph

✓ Published0🌍 Public
AALIMINETI SPOORTHY REDDY
Last edited Oct 17, 2025
Created on Oct 17, 2025
Forked from HTML Starter

This visualization shows the diameters of planets in kilometers using a bar chart, with each bar colored distinctly and a corresponding legend. The data is loaded from a CSV file via `d3.csv`, parsed, and sliced to the first 12 entries. The bars are rendered as SVG rectangles using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with colors assigned via `d3.scaleOrdinal` and `d3.schemeCategory10`. Both axes are labeled, and axis ticks are rotated for readability.

AI-generated description
MIT Licensed

Similar vizzes