Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Shapes and Colors with SVG and CSS

0 stars1🌍 Public
KKateryna
Last edited Sep 19, 2020
Created on Sep 18, 2020

This visualization displays the number of months requested per industry category using horizontal bars, with each bar’s length mapped to the numeric month value from the loaded CSV dataset. The code uses d3.csv to parse data.csv, d3.scaleLinear for the x-axis, d3.scaleBand with padding for the y-axis, and d3.axisBottom and d3.axisLeft to render axes. Rects are appended to an SVG group, styled with a steelblue fill via CSS, while the axis domain lines and ticks for the y-axis are explicitly removed.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed