Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Solar_System_Bar_Graph

Public visualization

Viewing a saved revision (read-only)

9d5574e8d7c243cfbd16b6d9f0c33b99

Solar_System_Bar_Graph

0 stars0🌍 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