Fork of Fork oftutorial 3.2,question
✓ Published0🌍 Public
RRakesh Yadav
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Fork oftutorial 3.2, Scatter Plot with Shape
This example shows a scatter plot of age versus BMI from an insurance dataset, with the smoker status of each individual encoded by the shape of the marker. The visualization uses d3.scaleOrdinal with d3.symbolsFill to assign distinct symbol types, and d3.axisLeft with d3.axisBottom to create the axes. A custom legend, built with d3.symbol, displays the smoker-status shapes alongside their labels. Data is loaded asynchronously from a CSV file using d3.csvParse, and the chart updates once the dataset arrives.
AI-generated descriptionMIT Licensed