Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart Test

Public visualization

Viewing a saved revision (read-only)

b8cc1795811f4a26b61055c4c0cc2024

Barchart Test

0 stars1🌍 Public
Ddleoenri
Last edited Apr 20, 2022
Created on Apr 20, 2022

This example shows a horizontal bar chart comparing the number of downloads for two mobile device categories. The bars are rendered as SVG rectangles using React, with scales created by `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. It uses `d3.csv` to load data from a GitHub gist, filtering the dataset to two rows. The chart includes grid lines and tick labels generated from `xScale.ticks()`, while y-axis labels are positioned manually from the scale’s domain.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.