Skip to main content
Public

Share visualization

Loading preview…

Assisgment 2 - Question 2

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

Assisgment 2 - Question 2

0
Vvaishnavi6gan@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024

This area chart displays chocolate sales data for a single categorical series, with value labels positioned above each point. The visualization uses D3 v7 to fetch a CSV from a GitHub gist, then constructs a band scale for the x-axis and a linear scale for the y-axis. The chart renders a filled area path using `d3.area`, with axes generated by `d3.axisBottom` and `d3.axisLeft`, and individual sales values added as SVG text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed