Skip to main content
100%

Cars Scatter Plot with Menu

✓ Published0🌍 Public
Wwishcsdev
Last edited Apr 12, 2019
Created on Apr 9, 2019

This interactive scatter plot displays the relationship between suicides and population across multiple countries, with each origin represented by a distinct color. Users can change both the x- and y-axis variables via dropdown menus built with the custom dropdownMenu function. The visualization uses D3 v5’s scaleLinear, scaleOrdinal, axisBottom, and axisLeft to render SVG elements, with a colorLegend module for interactive country filtering by clicking legend items. The data comes from a CSV file loaded via d3.csv, and circle opacity adjusts to highlight or dim points based on the selected country.

AI-generated description
MIT Licensed

Similar vizzes