test v3
✓ Published0🌍 Public
This example demonstrates a minimal D3.js v3 setup within a VizHub environment, showing an ordinal scale with padded range bands and a plain-text message rendered on the page. It loads D3 via UNPKG, imports the `select` function from the `d3` module, and defines a local ES6 module for the message string. The page displays the message using CSS styling, while the console logs the computed `rangeBand()` value from the ordinal scale.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed