Created
February 4, 2014 18:20
-
-
Save muschellij2/8809304 to your computer and use it in GitHub Desktop.
n1line
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> | |
<head> | |
<link rel='stylesheet' href='http://nvd3.org/src/nv.d3.css'> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script> | |
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script> | |
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script> | |
<script src='http://nvd3.org/lib/fisheye.js' type='text/javascript'></script> | |
<style> | |
.rChart { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
width: 800px; | |
height: 400px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='chart59905f4d4e51' class='rChart nvd3'></div> | |
<script type='text/javascript'> | |
$(document).ready(function(){ | |
drawchart59905f4d4e51() | |
}); | |
function drawchart59905f4d4e51(){ | |
var opts = { | |
"dom": "chart59905f4d4e51", | |
"width": 800, | |
"height": 400, | |
"x": "date", | |
"y": "HitRatio", | |
"group": "State", | |
"type": "cumulativeLine", | |
"id": "chart59905f4d4e51" | |
}, | |
data = [ | |
{ | |
"month": "Jan", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "AZ", | |
"HitRatio": 0.5, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "AZ", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "CA", | |
"HitRatio": 0.2, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "CA", | |
"HitRatio": 0.04761904761905, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "CA", | |
"HitRatio": 0.125, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "CA", | |
"HitRatio": 0.125, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "CA", | |
"HitRatio": 0.1, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "CA", | |
"HitRatio": 0.125, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "CA", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "CT", | |
"HitRatio": 1, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "CT", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "FL", | |
"HitRatio": 0.05555555555556, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "FL", | |
"HitRatio": 0.08333333333333, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "FL", | |
"HitRatio": 0.2857142857143, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "FL", | |
"HitRatio": 0.1428571428571, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "FL", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "FL", | |
"HitRatio": 0.4, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "GA", | |
"HitRatio": 0.25, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "GA", | |
"HitRatio": 0.5, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "GA", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "HI", | |
"HitRatio": 0.5, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "HI", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "ID", | |
"HitRatio": 1, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "ID", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "IL", | |
"HitRatio": 0.5, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "IL", | |
"HitRatio": 0.3333333333333, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "IL", | |
"HitRatio": 0.5, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "IL", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "IL", | |
"HitRatio": 0.5, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "IN", | |
"HitRatio": 0.3333333333333, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "IN", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "KY", | |
"HitRatio": 0.5, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "KY", | |
"HitRatio": 0.3333333333333, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "KY", | |
"HitRatio": 1, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "KY", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "ME", | |
"HitRatio": 0.3333333333333, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "ME", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "MD", | |
"HitRatio": 0.2857142857143, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "MD", | |
"HitRatio": 0.2, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "MD", | |
"HitRatio": 0.1666666666667, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "MD", | |
"HitRatio": 1, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "MD", | |
"HitRatio": 0.2, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "MD", | |
"HitRatio": 1, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "MD", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "MI", | |
"HitRatio": 0.25, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "MI", | |
"HitRatio": 0.5, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "MI", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "MN", | |
"HitRatio": 0.5, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "MN", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "MO", | |
"HitRatio": 0.3333333333333, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "MO", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "NV", | |
"HitRatio": 0.3333333333333, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "NV", | |
"HitRatio": 1, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "NV", | |
"HitRatio": 0.25, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "NV", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "NH", | |
"HitRatio": 0.5, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "NH", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "NJ", | |
"HitRatio": 0.2, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "NJ", | |
"HitRatio": 1, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "NJ", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "NJ", | |
"HitRatio": 0.1666666666667, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "NY", | |
"HitRatio": 0.2, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "NY", | |
"HitRatio": 0.2, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "NY", | |
"HitRatio": 0.125, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "NY", | |
"HitRatio": 0.3333333333333, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "NY", | |
"HitRatio": 0.3333333333333, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "NY", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "NC", | |
"HitRatio": 0.5, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "NC", | |
"HitRatio": 0.2, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "NC", | |
"HitRatio": 0.3333333333333, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "NC", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "NC", | |
"HitRatio": 0.3333333333333, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "OH", | |
"HitRatio": 0.1666666666667, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "OH", | |
"HitRatio": 0.2, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "OH", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "PA", | |
"HitRatio": 0.2222222222222, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "PA", | |
"HitRatio": 0.1666666666667, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "PA", | |
"HitRatio": 0.25, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "PA", | |
"HitRatio": 0.4, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "PA", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "PA", | |
"HitRatio": 0.3333333333333, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "SC", | |
"HitRatio": 0.5, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "SC", | |
"HitRatio": 1, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "SC", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "TN", | |
"HitRatio": 0.5, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "TN", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "VA", | |
"HitRatio": 0.5, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "VA", | |
"HitRatio": 0, | |
"date": 16040 | |
}, | |
{ | |
"month": "Jan", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15706 | |
}, | |
{ | |
"month": "Feb", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15737 | |
}, | |
{ | |
"month": "Mar", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15765 | |
}, | |
{ | |
"month": "Apr", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15796 | |
}, | |
{ | |
"month": "May", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15826 | |
}, | |
{ | |
"month": "June", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15857 | |
}, | |
{ | |
"month": "July", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15887 | |
}, | |
{ | |
"month": "Aug", | |
"State": "WI", | |
"HitRatio": 0.5, | |
"date": 15918 | |
}, | |
{ | |
"month": "Sep", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15949 | |
}, | |
{ | |
"month": "Oct", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 15979 | |
}, | |
{ | |
"month": "Nov", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 16010 | |
}, | |
{ | |
"month": "Dec", | |
"State": "WI", | |
"HitRatio": 0, | |
"date": 16040 | |
} | |
] | |
if(!(opts.type==="pieChart" || opts.type==="sparklinePlus")) { | |
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]() | |
.x(function(d) { return d[opts.x] }) | |
.y(function(d) { return d[opts.y] }) | |
.width(opts.width) | |
.height(opts.height) | |
d3.select("#" + opts.id) | |
.append('svg') | |
.datum(data) | |
.transition().duration(500) | |
.call(chart); | |
nv.utils.windowResize(chart.update); | |
return chart; | |
}); | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment