Skip to main content
100%

sample

✓ Published0🌍 Public
Kkandulasunny17@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes