Skip to main content
100%

Barchart

✓ Published0🌍 Public
SSwapna1915
Last edited Jul 25, 2023
Created on Jul 19, 2023
Forked from Making a Barchart

This bar chart displays the distribution of brand ratings from a CSV dataset, with each bar’s length representing the rating value and brands ordered along the vertical axis. Using d3.csv to load the data, d3.scaleLinear and d3.scaleBand map ratings and brands to screen coordinates, while d3.axisLeft and d3.axisBottom render the axes. The SVG rectangles are appended and sized via the scales, with a fixed margin and teal fill defined in CSS.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes