Skip to content

Instantly share code, notes, and snippets.

Avatar

Alireza Barkhordari aleereza

View GitHub Profile
@aleereza
aleereza / index.html
Last active May 20, 2019
D3 v4 - Scatter Plot - Semantic Zooming
View index.html
<!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