Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Article Starter

Public visualization

Viewing a saved revision (read-only)

2c4ab7e69edc48428f65ec8e6f1e2ebd

Article Starter

0 stars6🌍 Public
CCurran Kelleher
Last edited Feb 20, 2024
Created on Feb 9, 2024
Forked from Hello VizHub 3

This example demonstrates how VizHub can be used to publish an article with embedded interactive visualizations. It shows four responsive charts—a scatter plot, bar chart, line chart, and axes—rendered via iframes that adapt to different screen sizes. The code uses the VizHub embed feature to integrate the visualizations, and the charts themselves are built with D3.js. The README file serves as the primary content, with the embedded vizzes illustrating the platform's capability for hosting and sharing data-driven articles.

AI-generated description

An example showing the capabilities of VizHub 3:

  • There is no index.html here!
  • The entry point is the named export main from index.js
  • The first argument to main is container, a DOM node
  • The container DOM 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!