<!doctype HTML>
<link rel='stylesheet' href='nvd3/css/nv.d3.css'>
<link rel='stylesheet' href='nvd3/css/rNVD3.css'>
<script src='nvd3/js/jquery-1.8.2.min.js' type='text/javascript'></script>
<script src='nvd3/js/d3.v3.min.js' type='text/javascript'></script>
<script src='nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='nvd3/js/fisheye.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
}
</style>
<div id = 'chart796c1b884ee9' class = 'rChart nvd3'></div>
<script type='text/javascript'>
$(document).ready(function(){ drawchart796c1b884ee9() }); function
drawchart796c1b884ee9(){
var opts = { "dom": "chart796c1b884ee9", "width": 800, "height": 400,
"x": "SepalWidth", "y": "SepalLength", "group": "Species", "type":
"point", "id": "chart796c1b884ee9" }, data = [ { "SepalLength": 5.1,
"SepalWidth": 3.5, "PetalLength": 1.4, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.9, "SepalWidth": 3, "PetalLength": 1.4,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 4.7,
"SepalWidth": 3.2, "PetalLength": 1.3, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.6, "SepalWidth": 3.1, "PetalLength": 1.5,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5,
"SepalWidth": 3.6, "PetalLength": 1.4, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.4, "SepalWidth": 3.9, "PetalLength": 1.7,
"PetalWidth": 0.4, "Species": "setosa" }, { "SepalLength": 4.6,
"SepalWidth": 3.4, "PetalLength": 1.4, "PetalWidth": 0.3, "Species":
"setosa" }, { "SepalLength": 5, "SepalWidth": 3.4, "PetalLength": 1.5,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 4.4,
"SepalWidth": 2.9, "PetalLength": 1.4, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.9, "SepalWidth": 3.1, "PetalLength": 1.5,
"PetalWidth": 0.1, "Species": "setosa" }, { "SepalLength": 5.4,
"SepalWidth": 3.7, "PetalLength": 1.5, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.8, "SepalWidth": 3.4, "PetalLength": 1.6,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 4.8,
"SepalWidth": 3, "PetalLength": 1.4, "PetalWidth": 0.1, "Species":
"setosa" }, { "SepalLength": 4.3, "SepalWidth": 3, "PetalLength": 1.1,
"PetalWidth": 0.1, "Species": "setosa" }, { "SepalLength": 5.8,
"SepalWidth": 4, "PetalLength": 1.2, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.7, "SepalWidth": 4.4, "PetalLength": 1.5,
"PetalWidth": 0.4, "Species": "setosa" }, { "SepalLength": 5.4,
"SepalWidth": 3.9, "PetalLength": 1.3, "PetalWidth": 0.4, "Species":
"setosa" }, { "SepalLength": 5.1, "SepalWidth": 3.5, "PetalLength": 1.4,
"PetalWidth": 0.3, "Species": "setosa" }, { "SepalLength": 5.7,
"SepalWidth": 3.8, "PetalLength": 1.7, "PetalWidth": 0.3, "Species":
"setosa" }, { "SepalLength": 5.1, "SepalWidth": 3.8, "PetalLength": 1.5,
"PetalWidth": 0.3, "Species": "setosa" }, { "SepalLength": 5.4,
"SepalWidth": 3.4, "PetalLength": 1.7, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.1, "SepalWidth": 3.7, "PetalLength": 1.5,
"PetalWidth": 0.4, "Species": "setosa" }, { "SepalLength": 4.6,
"SepalWidth": 3.6, "PetalLength": 1, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.1, "SepalWidth": 3.3, "PetalLength": 1.7,
"PetalWidth": 0.5, "Species": "setosa" }, { "SepalLength": 4.8,
"SepalWidth": 3.4, "PetalLength": 1.9, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5, "SepalWidth": 3, "PetalLength": 1.6,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5,
"SepalWidth": 3.4, "PetalLength": 1.6, "PetalWidth": 0.4, "Species":
"setosa" }, { "SepalLength": 5.2, "SepalWidth": 3.5, "PetalLength": 1.5,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5.2,
"SepalWidth": 3.4, "PetalLength": 1.4, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.7, "SepalWidth": 3.2, "PetalLength": 1.6,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 4.8,
"SepalWidth": 3.1, "PetalLength": 1.6, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.4, "SepalWidth": 3.4, "PetalLength": 1.5,
"PetalWidth": 0.4, "Species": "setosa" }, { "SepalLength": 5.2,
"SepalWidth": 4.1, "PetalLength": 1.5, "PetalWidth": 0.1, "Species":
"setosa" }, { "SepalLength": 5.5, "SepalWidth": 4.2, "PetalLength": 1.4,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 4.9,
"SepalWidth": 3.1, "PetalLength": 1.5, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5, "SepalWidth": 3.2, "PetalLength": 1.2,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5.5,
"SepalWidth": 3.5, "PetalLength": 1.3, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.9, "SepalWidth": 3.6, "PetalLength": 1.4,
"PetalWidth": 0.1, "Species": "setosa" }, { "SepalLength": 4.4,
"SepalWidth": 3, "PetalLength": 1.3, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5.1, "SepalWidth": 3.4, "PetalLength": 1.5,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5,
"SepalWidth": 3.5, "PetalLength": 1.3, "PetalWidth": 0.3, "Species":
"setosa" }, { "SepalLength": 4.5, "SepalWidth": 2.3, "PetalLength": 1.3,
"PetalWidth": 0.3, "Species": "setosa" }, { "SepalLength": 4.4,
"SepalWidth": 3.2, "PetalLength": 1.3, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5, "SepalWidth": 3.5, "PetalLength": 1.6,
"PetalWidth": 0.6, "Species": "setosa" }, { "SepalLength": 5.1,
"SepalWidth": 3.8, "PetalLength": 1.9, "PetalWidth": 0.4, "Species":
"setosa" }, { "SepalLength": 4.8, "SepalWidth": 3, "PetalLength": 1.4,
"PetalWidth": 0.3, "Species": "setosa" }, { "SepalLength": 5.1,
"SepalWidth": 3.8, "PetalLength": 1.6, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 4.6, "SepalWidth": 3.2, "PetalLength": 1.4,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 5.3,
"SepalWidth": 3.7, "PetalLength": 1.5, "PetalWidth": 0.2, "Species":
"setosa" }, { "SepalLength": 5, "SepalWidth": 3.3, "PetalLength": 1.4,
"PetalWidth": 0.2, "Species": "setosa" }, { "SepalLength": 7,
"SepalWidth": 3.2, "PetalLength": 4.7, "PetalWidth": 1.4, "Species":
"versicolor" }, { "SepalLength": 6.4, "SepalWidth": 3.2, "PetalLength":
4.5, "PetalWidth": 1.5, "Species": "versicolor" }, { "SepalLength": 6.9,
"SepalWidth": 3.1, "PetalLength": 4.9, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 5.5, "SepalWidth": 2.3, "PetalLength":
4, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 6.5,
"SepalWidth": 2.8, "PetalLength": 4.6, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 5.7, "SepalWidth": 2.8, "PetalLength":
4.5, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 6.3,
"SepalWidth": 3.3, "PetalLength": 4.7, "PetalWidth": 1.6, "Species":
"versicolor" }, { "SepalLength": 4.9, "SepalWidth": 2.4, "PetalLength":
3.3, "PetalWidth": 1, "Species": "versicolor" }, { "SepalLength": 6.6,
"SepalWidth": 2.9, "PetalLength": 4.6, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 5.2, "SepalWidth": 2.7, "PetalLength":
3.9, "PetalWidth": 1.4, "Species": "versicolor" }, { "SepalLength": 5,
"SepalWidth": 2, "PetalLength": 3.5, "PetalWidth": 1, "Species":
"versicolor" }, { "SepalLength": 5.9, "SepalWidth": 3, "PetalLength":
4.2, "PetalWidth": 1.5, "Species": "versicolor" }, { "SepalLength": 6,
"SepalWidth": 2.2, "PetalLength": 4, "PetalWidth": 1, "Species":
"versicolor" }, { "SepalLength": 6.1, "SepalWidth": 2.9, "PetalLength":
4.7, "PetalWidth": 1.4, "Species": "versicolor" }, { "SepalLength": 5.6,
"SepalWidth": 2.9, "PetalLength": 3.6, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 6.7, "SepalWidth": 3.1, "PetalLength":
4.4, "PetalWidth": 1.4, "Species": "versicolor" }, { "SepalLength": 5.6,
"SepalWidth": 3, "PetalLength": 4.5, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 5.8, "SepalWidth": 2.7, "PetalLength":
4.1, "PetalWidth": 1, "Species": "versicolor" }, { "SepalLength": 6.2,
"SepalWidth": 2.2, "PetalLength": 4.5, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 5.6, "SepalWidth": 2.5, "PetalLength":
3.9, "PetalWidth": 1.1, "Species": "versicolor" }, { "SepalLength": 5.9,
"SepalWidth": 3.2, "PetalLength": 4.8, "PetalWidth": 1.8, "Species":
"versicolor" }, { "SepalLength": 6.1, "SepalWidth": 2.8, "PetalLength":
4, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 6.3,
"SepalWidth": 2.5, "PetalLength": 4.9, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 6.1, "SepalWidth": 2.8, "PetalLength":
4.7, "PetalWidth": 1.2, "Species": "versicolor" }, { "SepalLength": 6.4,
"SepalWidth": 2.9, "PetalLength": 4.3, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 6.6, "SepalWidth": 3, "PetalLength":
4.4, "PetalWidth": 1.4, "Species": "versicolor" }, { "SepalLength": 6.8,
"SepalWidth": 2.8, "PetalLength": 4.8, "PetalWidth": 1.4, "Species":
"versicolor" }, { "SepalLength": 6.7, "SepalWidth": 3, "PetalLength": 5,
"PetalWidth": 1.7, "Species": "versicolor" }, { "SepalLength": 6,
"SepalWidth": 2.9, "PetalLength": 4.5, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 5.7, "SepalWidth": 2.6, "PetalLength":
3.5, "PetalWidth": 1, "Species": "versicolor" }, { "SepalLength": 5.5,
"SepalWidth": 2.4, "PetalLength": 3.8, "PetalWidth": 1.1, "Species":
"versicolor" }, { "SepalLength": 5.5, "SepalWidth": 2.4, "PetalLength":
3.7, "PetalWidth": 1, "Species": "versicolor" }, { "SepalLength": 5.8,
"SepalWidth": 2.7, "PetalLength": 3.9, "PetalWidth": 1.2, "Species":
"versicolor" }, { "SepalLength": 6, "SepalWidth": 2.7, "PetalLength":
5.1, "PetalWidth": 1.6, "Species": "versicolor" }, { "SepalLength": 5.4,
"SepalWidth": 3, "PetalLength": 4.5, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 6, "SepalWidth": 3.4, "PetalLength":
4.5, "PetalWidth": 1.6, "Species": "versicolor" }, { "SepalLength": 6.7,
"SepalWidth": 3.1, "PetalLength": 4.7, "PetalWidth": 1.5, "Species":
"versicolor" }, { "SepalLength": 6.3, "SepalWidth": 2.3, "PetalLength":
4.4, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 5.6,
"SepalWidth": 3, "PetalLength": 4.1, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 5.5, "SepalWidth": 2.5, "PetalLength":
4, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 5.5,
"SepalWidth": 2.6, "PetalLength": 4.4, "PetalWidth": 1.2, "Species":
"versicolor" }, { "SepalLength": 6.1, "SepalWidth": 3, "PetalLength":
4.6, "PetalWidth": 1.4, "Species": "versicolor" }, { "SepalLength": 5.8,
"SepalWidth": 2.6, "PetalLength": 4, "PetalWidth": 1.2, "Species":
"versicolor" }, { "SepalLength": 5, "SepalWidth": 2.3, "PetalLength":
3.3, "PetalWidth": 1, "Species": "versicolor" }, { "SepalLength": 5.6,
"SepalWidth": 2.7, "PetalLength": 4.2, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 5.7, "SepalWidth": 3, "PetalLength":
4.2, "PetalWidth": 1.2, "Species": "versicolor" }, { "SepalLength": 5.7,
"SepalWidth": 2.9, "PetalLength": 4.2, "PetalWidth": 1.3, "Species":
"versicolor" }, { "SepalLength": 6.2, "SepalWidth": 2.9, "PetalLength":
4.3, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 5.1,
"SepalWidth": 2.5, "PetalLength": 3, "PetalWidth": 1.1, "Species":
"versicolor" }, { "SepalLength": 5.7, "SepalWidth": 2.8, "PetalLength":
4.1, "PetalWidth": 1.3, "Species": "versicolor" }, { "SepalLength": 6.3,
"SepalWidth": 3.3, "PetalLength": 6, "PetalWidth": 2.5, "Species":
"virginica" }, { "SepalLength": 5.8, "SepalWidth": 2.7, "PetalLength":
5.1, "PetalWidth": 1.9, "Species": "virginica" }, { "SepalLength": 7.1,
"SepalWidth": 3, "PetalLength": 5.9, "PetalWidth": 2.1, "Species":
"virginica" }, { "SepalLength": 6.3, "SepalWidth": 2.9, "PetalLength":
5.6, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6.5,
"SepalWidth": 3, "PetalLength": 5.8, "PetalWidth": 2.2, "Species":
"virginica" }, { "SepalLength": 7.6, "SepalWidth": 3, "PetalLength":
6.6, "PetalWidth": 2.1, "Species": "virginica" }, { "SepalLength": 4.9,
"SepalWidth": 2.5, "PetalLength": 4.5, "PetalWidth": 1.7, "Species":
"virginica" }, { "SepalLength": 7.3, "SepalWidth": 2.9, "PetalLength":
6.3, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6.7,
"SepalWidth": 2.5, "PetalLength": 5.8, "PetalWidth": 1.8, "Species":
"virginica" }, { "SepalLength": 7.2, "SepalWidth": 3.6, "PetalLength":
6.1, "PetalWidth": 2.5, "Species": "virginica" }, { "SepalLength": 6.5,
"SepalWidth": 3.2, "PetalLength": 5.1, "PetalWidth": 2, "Species":
"virginica" }, { "SepalLength": 6.4, "SepalWidth": 2.7, "PetalLength":
5.3, "PetalWidth": 1.9, "Species": "virginica" }, { "SepalLength": 6.8,
"SepalWidth": 3, "PetalLength": 5.5, "PetalWidth": 2.1, "Species":
"virginica" }, { "SepalLength": 5.7, "SepalWidth": 2.5, "PetalLength":
5, "PetalWidth": 2, "Species": "virginica" }, { "SepalLength": 5.8,
"SepalWidth": 2.8, "PetalLength": 5.1, "PetalWidth": 2.4, "Species":
"virginica" }, { "SepalLength": 6.4, "SepalWidth": 3.2, "PetalLength":
5.3, "PetalWidth": 2.3, "Species": "virginica" }, { "SepalLength": 6.5,
"SepalWidth": 3, "PetalLength": 5.5, "PetalWidth": 1.8, "Species":
"virginica" }, { "SepalLength": 7.7, "SepalWidth": 3.8, "PetalLength":
6.7, "PetalWidth": 2.2, "Species": "virginica" }, { "SepalLength": 7.7,
"SepalWidth": 2.6, "PetalLength": 6.9, "PetalWidth": 2.3, "Species":
"virginica" }, { "SepalLength": 6, "SepalWidth": 2.2, "PetalLength": 5,
"PetalWidth": 1.5, "Species": "virginica" }, { "SepalLength": 6.9,
"SepalWidth": 3.2, "PetalLength": 5.7, "PetalWidth": 2.3, "Species":
"virginica" }, { "SepalLength": 5.6, "SepalWidth": 2.8, "PetalLength":
4.9, "PetalWidth": 2, "Species": "virginica" }, { "SepalLength": 7.7,
"SepalWidth": 2.8, "PetalLength": 6.7, "PetalWidth": 2, "Species":
"virginica" }, { "SepalLength": 6.3, "SepalWidth": 2.7, "PetalLength":
4.9, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6.7,
"SepalWidth": 3.3, "PetalLength": 5.7, "PetalWidth": 2.1, "Species":
"virginica" }, { "SepalLength": 7.2, "SepalWidth": 3.2, "PetalLength":
6, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6.2,
"SepalWidth": 2.8, "PetalLength": 4.8, "PetalWidth": 1.8, "Species":
"virginica" }, { "SepalLength": 6.1, "SepalWidth": 3, "PetalLength":
4.9, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6.4,
"SepalWidth": 2.8, "PetalLength": 5.6, "PetalWidth": 2.1, "Species":
"virginica" }, { "SepalLength": 7.2, "SepalWidth": 3, "PetalLength":
5.8, "PetalWidth": 1.6, "Species": "virginica" }, { "SepalLength": 7.4,
"SepalWidth": 2.8, "PetalLength": 6.1, "PetalWidth": 1.9, "Species":
"virginica" }, { "SepalLength": 7.9, "SepalWidth": 3.8, "PetalLength":
6.4, "PetalWidth": 2, "Species": "virginica" }, { "SepalLength": 6.4,
"SepalWidth": 2.8, "PetalLength": 5.6, "PetalWidth": 2.2, "Species":
"virginica" }, { "SepalLength": 6.3, "SepalWidth": 2.8, "PetalLength":
5.1, "PetalWidth": 1.5, "Species": "virginica" }, { "SepalLength": 6.1,
"SepalWidth": 2.6, "PetalLength": 5.6, "PetalWidth": 1.4, "Species":
"virginica" }, { "SepalLength": 7.7, "SepalWidth": 3, "PetalLength":
6.1, "PetalWidth": 2.3, "Species": "virginica" }, { "SepalLength": 6.3,
"SepalWidth": 3.4, "PetalLength": 5.6, "PetalWidth": 2.4, "Species":
"virginica" }, { "SepalLength": 6.4, "SepalWidth": 3.1, "PetalLength":
5.5, "PetalWidth": 1.8, "Species": "virginica" }, { "SepalLength": 6,
"SepalWidth": 3, "PetalLength": 4.8, "PetalWidth": 1.8, "Species":
"virginica" }, { "SepalLength": 6.9, "SepalWidth": 3.1, "PetalLength":
5.4, "PetalWidth": 2.1, "Species": "virginica" }, { "SepalLength": 6.7,
"SepalWidth": 3.1, "PetalLength": 5.6, "PetalWidth": 2.4, "Species":
"virginica" }, { "SepalLength": 6.9, "SepalWidth": 3.1, "PetalLength":
5.1, "PetalWidth": 2.3, "Species": "virginica" }, { "SepalLength": 5.8,
"SepalWidth": 2.7, "PetalLength": 5.1, "PetalWidth": 1.9, "Species":
"virginica" }, { "SepalLength": 6.8, "SepalWidth": 3.2, "PetalLength":
5.9, "PetalWidth": 2.3, "Species": "virginica" }, { "SepalLength": 6.7,
"SepalWidth": 3.3, "PetalLength": 5.7, "PetalWidth": 2.5, "Species":
"virginica" }, { "SepalLength": 6.7, "SepalWidth": 3, "PetalLength":
5.2, "PetalWidth": 2.3, "Species": "virginica" }, { "SepalLength": 6.3,
"SepalWidth": 2.5, "PetalLength": 5, "PetalWidth": 1.9, "Species":
"virginica" }, { "SepalLength": 6.5, "SepalWidth": 3, "PetalLength":
5.2, "PetalWidth": 2, "Species": "virginica" }, { "SepalLength": 6.2,
"SepalWidth": 3.4, "PetalLength": 5.4, "PetalWidth": 2.3, "Species":
"virginica" }, { "SepalLength": 5.9, "SepalWidth": 3, "PetalLength":
5.1, "PetalWidth": 1.8, "Species": "virginica" } ]
if(!(opts.type==="pieChart" || opts.type==="sparklinePlus" || opts.type==="bulletChart")) {
var data = d3.nest()
.key(function(d){
//return opts.group === undefined ? 'main' : d[opts.group]
//instead of main would think a better default is opts.x
return opts.group === undefined ? opts.y : d[opts.group];
})
.entries(data);
}
if (opts.disabled != undefined){
data.map(function(d, i){
d.disabled = opts.disabled[i]
})
}
nv.addGraph(function() {
var chart = nv.models[opts.type]()
.width(opts.width)
.height(opts.height)
if (opts.type != "bulletChart"){
chart
.x(function(d) { return d[opts.x] })
.y(function(d) { return d[opts.y] })
}
d3.select("#" + opts.id)
.append('svg')
.datum(data)
.transition().duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
};
<script></script>