Skip to main content
Public

Share visualization

Loading preview…

ICE-6:products sales between 2018-2019

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

ICE-6:products sales between 2018-2019

0
Yyaswanthsen
Last edited Mar 3, 2023
Created on Mar 3, 2023

This visualization shows product sales by country for the top 15 entries between 2018 and 2019, using a horizontal bar chart rendered as an SVG. The chart uses React state to load CSV data from a GitHub gist via d3.csv, then maps each country to a y-scale band and each product’s basic cost to a linear x-scale. Axis ticks and labels are drawn manually with d3.scaleBand and d3.scaleLinear, while bars are simple SVG rectangles. The code relies on React hooks (useState, useEffect) and d3’s max and format utilities for scaling and tick generation.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed