Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 blank canvas

Public visualization

d3 blank canvas

0 stars0🌍 Public
Zzach b.
Last edited Feb 19, 2022
Created on Feb 18, 2022

This example demonstrates a minimal d3.js setup using a Model-View-Controller pattern, rendering a fixed lime-green rectangle and a centered "Hello World!" text message from `data.json` onto an SVG canvas. The code imports `select` from d3, fetches the JSON data via `d3.json`, and uses a separate `render.js` module to append the SVG shapes. The visualization is responsive, sizing the canvas to the browser window’s client dimensions.

AI-generated description

blank canvas for d3 in a kinda MVC pattern.

Model = usdData.js
View = render.js
Controller = index.js

Comments

Sign in to join the discussion.

MIT Licensed