sample
✓ Published0🌍 Public
This example plots sales data as a scatter plot, encoding BMI on the x-axis, age on the y-axis using a band scale, and smoker status as color via an ordinal scale with Tableau10 scheme. It loads CSV data from a GitHub repository, renders SVG circles with tooltips on mouseover, and includes axes, a legend, and labels. The code leverages D3 v6 APIs such as `d3.csv`, `scaleLinear`, `scaleBand`, `scaleOrdinal`, `axisLeft`, and `axisBottom`.
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