Skip to main content
100%

code5

✓ Published1🌍 Public
SSnigdha6698
Last edited Feb 28, 2022
Created on Feb 28, 2022
Forked from Hello VizHub

This example displays a static SVG diagram alongside a text report that summarizes a CSV dataset. The page loads D3 v7 from UNPKG and uses `d3.csv` to fetch data from a GitHub gist, then calculates the file size in kilobytes with `d3.csvFormat`, counts rows and columns, and inserts that message into a `<pre>` container. Styling via `newstyle.css` sets a salmon background and centers the 800-pixel image. The code also includes unused ES6 module imports showing D3’s `select` function and a local `message` export.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes