Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Online Sales for Purchase Value Bar Chart

Public visualization

Viewing a saved revision (read-only)

b47a094534fa46c48ceb129a928d842f

Online Sales for Purchase Value Bar Chart

0 stars0🌍 Public
MManideeprenikindi
Last edited Jul 25, 2023
Created on Jul 25, 2023

This bar chart displays total online sales revenue by year for a customer dataset, with a fixed y-axis scale of 0 to 90 and red bars representing revenue values. The visualization uses D3.js v4 to parse CSV data from a GitHub repository, scale the categorical year values on the x-axis via `d3.scaleBand`, and map revenue to a linear scale on the y-axis. SVG rectangles are drawn for each bar, while `d3.axisBottom` and `d3.axisLeft` generate the labeled axes, with rotated x-axis text for readability.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.