Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Aavvarijayakrishna99@gmail.com
Last edited Mar 7, 2023
Created on Mar 7, 2023

This example shows the price of products across different subcategories for a single country, displayed as horizontal bars on an SVG chart. It loads data from a CSV file, sorts it to show the top 15 entries, and uses React state to manage the asynchronous data loading. Rendering combines React components for structure with D3 scales (`d3.scaleBand`, `d3.scaleLinear`) and axes for positioning and tick generation. The code uses `d3.csv` to parse the data, `d3.max` to compute the domain, and manual SVG elements for the gridlines and labels.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes