Skip to main content
100%

Add Interaction OR Iterate Your Work

✓ Published0🌍 Public
JJingxuan Yang
Last edited Feb 13, 2024
Created on Feb 13, 2024

This scatter plot visualizes the relationship between the number of bedrooms and living area square footage in the kc_house_data dataset. The visualization uses d3.scaleLinear for both axes and d3.extent to compute the y-domain from the data. Interactive elements track the mouse position using d3.pointer, drawing hover lines across the plot to highlight coordinates. The code imports shared visualization utilities from @curran for axis rendering and resize observation, while circles are rendered with fixed radius and opacity.

AI-generated description

A simple scatter plot with D3 showing the kc_house_data

Challenge

  • Fork this viz
  • Modify it to show your data
MIT Licensed

Similar vizzes