Skip to content

Instantly share code, notes, and snippets.

View aleereza's full-sized avatar

Alireza Barkhordari aleereza

View GitHub Profile
@aleereza
aleereza / index.html
Last active May 31, 2023 11:10
D3 v4 - Scatter Plot - Semantic Zooming
<!DOCTYPE html>
<meta charset="utf-8">
<svg width="500" height="500"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var n = 50; // number of points
var max = 100; // maximum of x and y
// dimensions and margins