D3.js
✓ Published0🌍 Public
This example demonstrates the capabilities of VizHub by loading D3.js and Chart.js through CDN links and rendering interactive data visualizations on an HTML canvas or as embedded SVG images. The interface presents a set of buttons that display different chart types, including bar charts, scatter plots, and distribution graphs, with each button triggering a hide-and-show mechanism between the canvas and an image element. The code imports a local ES6 module for a message and uses Chart.js to create the bar chart on the canvas, while SVG charts are loaded from external GitHub URLs. The styling uses a Roboto font and gradient background for presentation.
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