🌍 Public
Viewing a saved revision (read-only)
f6cdcd0350ff4340b473b9c887c9ddd6
vendas_por_grupo_bar_chart
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 descriptionA demonstration of how to start using D3 version 6.