Skip to main content
100%

E24 - STYLISED a Bar Chart

✓ Published1🌍 Public
VVanessa
Last edited Mar 23, 2021
Created on Mar 23, 2021

This stylized bar chart visualizes regional trip volumes using an SVG-based React interface. It loads a CSV dataset via the `csv` function from D3 v5 and maps the data to horizontal bars, with the y-axis displaying regions and the x-axis showing trips. The example clearly separates concerns across three modular files: `AxisBottom.js`, `AxisLeft.js`, and `Marks.js`, which utilize D3's `scaleBand`, `scaleLinear`, and `format` utilities for scaling and tick formatting. The chart uses a linear scale for the x-axis, with tick labels formatted using a custom two-significant-figure format, and includes a tooltip for each bar.

AI-generated description

A program that loads in some using D3 utilities, and uses React to render the data as a radial burst! Refactored to made it simplier and smaller

Episode 24

<iframe width="560" height="315" src="https://www.youtube.com/watch?v=pEslJER9ekM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
MIT Licensed

Similar vizzes