Skip to main content
100%

vendas_por_grupo_bar_chart

✓ Published3🌍 Public
Ggabrielribeirob
Last edited Nov 5, 2021
Created on Nov 1, 2021
Forked from Making a BarChart

This bar chart displays the quantity sold for each product group, with horizontal bars ordered by category name. The visualization uses D3 v7’s `scaleLinear` and `scaleBand` to map sales values and group labels, while `axisLeft` and `axisBottom` render the axes. Data is loaded from a CSV file using `d3.csv`, and each bar includes a hover tooltip via appended `title` elements. The SVG output is styled with a gradient background and custom fill colors for the bars.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes