Skip to content

Instantly share code, notes, and snippets.

@EfratVil
EfratVil / README.md
Last active November 30, 2016 08:24
Normal Distributions

Compering 2 normal distributions.

@EfratVil
EfratVil / README.md
Last active January 26, 2017 18:37
clusters force
@EfratVil
EfratVil / index.html
Last active January 26, 2017 18:42
Area chart
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<body>
<svg width="700" height="400">
</svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var svg = d3.select("svg"),
@EfratVil
EfratVil / README.md
Last active September 16, 2017 07:32
Simple Zoom and Pan
@EfratVil
EfratVil / README.md
Last active September 16, 2017 07:35
Objects ordering

Hover on object to bring it to the front, click to take object to the background.

@EfratVil
EfratVil / README.md
Last active September 16, 2017 07:38
Fixed size slider

Line chart with fixed size slider. Slider can only be moved from side to side.

@EfratVil
EfratVil / README.md
Last active October 3, 2017 09:31
Mahalanobis Distance
@EfratVil
EfratVil / README.md
Last active October 3, 2017 14:30
LaTeX Equations

Using MathJax.js to display LaTeX equations in the browser.

@EfratVil
EfratVil / index.html
Last active January 15, 2018 05:38
Linear Gradient Rotation
<!DOCTYPE html>
<meta charset="utf-8">
<script src="//d3js.org/d3.v4.min.js"></script>
<body>
<span class="leftlabel">0</span>
<input id="range1" type="range" min="0" max="90" value="0" style="width: 300px; margin-right: 10px;" />
<span class="rightlabel">100</span> <br/><br />
@EfratVil
EfratVil / index.html
Last active January 15, 2018 08:07
Linear Gradient
<!DOCTYPE html>
<meta charset="utf-8">
<script src="//d3js.org/d3.v4.min.js"></script>
<body>
linearGradient with html / svg <br/>
<svg width="620" height="120">
<defs>
<linearGradient id="gradient"> <!--gradientTransform="rotate(45)"-->