Skip to main content
100%

Scatter Plot with Menus

✓ Published0🌍 Public
Nnghosh319
Last edited May 7, 2023
Created on May 6, 2023

This interactive scatter plot visualizes the penguins dataset, allowing users to choose which attributes appear on the x- and y-axes via dropdown menus. Built with React and the D3.js library, the SVG chart renders circles for each penguin, with axes and tick marks generated by D3's scale functions. The code imports data from a CSV file using D3's `csv` method. Tooltips show the x-axis value for each point, and axis labels dynamically update to reflect the selected attributes. The dropdowns use the `react-dropdown` library, while D3's `scaleLinear`, `extent`, and `format` utilities handle scaling and tick formatting.

AI-generated description

A scatter plot of [The penguins Dataset] (https://github.com/mwaskom/seaborn-data/blob/master/penguins.csv).

MIT Licensed

Similar vizzes