Skip to main content
100%

T3

✓ Published0🌍 Public
Ssannihitha.k23@gmail.com
Last edited Apr 24, 2024
Created on Apr 23, 2024
Forked from Hello VizHub

This example visualizes average sales amounts by sales channel, with a bar chart comparing categories from an Amazon Sale Report dataset loaded via `d3.csv`. The code computes group means using `d3.rollups` and `d3.mean`, then renders the bars with SVG rectangles. It uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and includes rotated axis labels and a title. Data is fetched from a GitHub raw URL, and the chart is built with D3 v7 within an 800x400 pixel container.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes