Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Marks and Channels

Public visualization

Viewing a saved revision (read-only)

f363e1c7adc04ed3a3edc698d0b319a5

Rendering Marks and Channels

0 stars1🌍 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.