Compering 2 normal distributions.
Started with examples from blocks like: cluster force, Collision Detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"), |
Started with this example
Hover on object to bring it to the front, click to take object to the background.
Line chart with fixed size slider. Slider can only be moved from side to side.
Scatter plot with color coding according to Mahalanobis distance.
Created based on @veltman's block, and
calculating bi-variate normal
Using MathJax.js to display LaTeX equations in the browser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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)"--> |