Skip to main content
Public

Share visualization

Loading preview…

Activity 6_Task 1

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

Activity 6_Task 1

1
Kkotagirivarshith2411@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Activity 6

This example shows the 2020 populations of 30 countries as a horizontal bar chart. The visualization uses SVG rendering through React, with D3 version 5 APIs including `scaleBand`, `scaleLinear`, and `max` to map values. A `csv` loader fetches data from a remote GitHub-hosted file. Bars are drawn as `<rect>` elements via the custom `Marks` component, with axes generated by `AxisBottom` and `AxisLeft`. Tick labels use the `format` function to abbreviate large numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed