🌍 Public
Viewing a saved revision (read-only)
dce6bacfacc6414788ccf9050cdf1f23
VizHub 2023 Google Analytics Data
This example displays a scatterplot of country names from a Google Analytics CSV, with each country’s label randomly positioned using `Math.random()`. The visualization uses D3's `select` and `join` methods to bind the CSV data to text elements within an SVG, rendering the country names without any underlying spatial encoding. The data source is a 2023 demographic report for vizhub.com, and the layout is generated procedurally on each render, offering a playful yet unstructured overview of the dataset’s country labels.
AI-generated descriptionAn example showing the capabilities of VizHub 3:
- There is no
index.htmlhere! - The entry point is the named export
mainfromindex.js - The first argument to
mainiscontainer, a DOM node - The
containerDOM node is a<div>with measurable dimensions - You can
import './styles.css'to load CSS - You can
import data from './data.csv'to load CSV data - Dependencies such as D3 are configured in
package.json - Alt+Click on a color to get a color picker
- Alt+Drag on a number for to change it
- All changes are hot reloaded
- Works with remote collaborators!