ICE 6: Rendering Marks and Channels with React & D3 - Scatter Plot
✓ Published0🌍 Public
This example renders a scatter plot using React and D3. It demonstrates how to combine D3’s `select` function with local ES6 modules to update a message on the page. The code loads D3 via UNPKG and uses the `import` syntax to access D3 APIs and a custom module. The visualization displays a scatter plot, with the message “Hello VizHub!” shown prominently. The example highlights the integration of D3’s mark and channel rendering within a React environment.
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