Skip to content

Instantly share code, notes, and snippets.


Alireza Barkhordari aleereza

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