Scatter Plot with Menus
✓ Published0🌍 Public
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 descriptionA scatter plot of [The penguins Dataset] (https://github.com/mwaskom/seaborn-data/blob/master/penguins.csv).
MIT Licensed