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 stars0🌍 Public
OOlavo Brito
Last edited Dec 31, 2019
Created on Dec 31, 2019

This example demonstrates how to draw and style SVG shapes using CSS classes and D3. It loads population data from a CSV file and outputs it to the console. The visualization uses `d3.csv` to parse the data and applies CSS rules to style SVG lines and paths with custom stroke colors, widths, and line joins, showcasing the integration of D3’s data handling with SVG’s vector graphics.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed