Skip to main content
Public

Share visualization

Loading preview…

Making a bat chart

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

Making a bat chart

0
SshanLU999
Last edited May 21, 2021
Created on May 21, 2021

This example attempts to create a bat chart from a dataset of country populations. The code uses D3 version 6 to select an SVG element and read a CSV file containing population figures. It intends to append rectangles to the chart, but the render function is incomplete and contains erroneous code, leaving the visualization non-functional. The chart would have used a fixed width and height for each bar, with data loaded via the `csv` function from D3.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed