Skip to main content
100%

Rendering Marks and Channels

✓ Published1🌍 Public
IIndhuKrishnaraj
Last edited Mar 9, 2023
Created on Mar 9, 2023

This example visualizes supermarket sales data by rendering a horizontal bar chart of product lines against their average ratings. The visualization uses React with D3 v5, loading data from a CSV file via d3.csv. It employs d3.scaleBand for the categorical y-axis, d3.scaleLinear for the numeric x-axis, and SVG rectangles as marks. The code renders axes manually with tick marks and gridlines, with margins configured to accommodate the long product line labels.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes