Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter plot using d3.js

Public visualization

Viewing a saved revision (read-only)

a5b63d40b25b4291ba31686b878319fe

Scatter plot using d3.js

0 stars0🌍 Public
Yyvarshachowdary@gmail.com
Last edited Mar 20, 2024
Created on Mar 20, 2024

This scatter plot visualizes the relationship between years of experience and salary, with each circle representing a data point from a CSV file loaded via d3.csv. The example uses d3.scaleLinear to map the data to x and y axes, with axis labels for both variables. Circles are appended to an SVG container with a fixed radius of 5 pixels and a teal fill, positioned using the scales. Axes are rendered with d3.axisBottom and d3.axisLeft, and the visualization uses d3.v6 in a simple HTML page.

AI-generated description

Visualization of alcohol usage vs tobacco usage from the CORGIS dataset made with D3. Implementation learned from DataVizDad on Youtube as well as the D3 Graph Gallery.

Hover over dots to see value for that point.