Skip to main content
100%

reusable scatter plot

✓ Published1🌍 Public
Vvishnupriya eupuri
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from reusable scatter

This reusable scatter plot visualizes the relationship between passenger age and fare from the Titanic dataset, colored by gender. Built with D3.js v6, it uses an SVG-based rendering approach with scales that adapt to the data domain. The x-axis represents age in years, the y-axis displays fare in dollars, and each circle is colored according to the passenger's gender using a categorical color scale. The code follows a modular, reusable function pattern, allowing the chart to be easily configured with different dimensions, data, and accessor functions. Axis labels clearly identify the variables, and the plot updates dynamically based on the data provided.

AI-generated description
MIT Licensed

Similar vizzes