<!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 = 'chart7302f6f1e23' class = 'rChart nvd3'></div>
<script type='text/javascript'>
$(document).ready(function(){ drawchart7302f6f1e23() }); function drawchart7302f6f1e23(){
var opts = { "dom": "chart7302f6f1e23", "width": 800, "height": 400, "x": "Place", "y": "Percent", "type": "multiBarChart", "group": "Answer", "id": "chart7302f6f1e23" }, data = [ { "pollaqid": 2, "Answer": "Excellent", "Votes": 0, "pollqid": 2, "Question": "How was Pizza Mercato?", "Place": "Pizza Mercato", "Time": 1344361527, "TotalVotes": 13, "Percent": 0 }, { "pollaqid": 2, "Answer": "Good", "Votes": 6, "pollqid": 2, "Question": "How was Pizza Mercato?", "Place": "Pizza Mercato", "Time": 1344361527, "TotalVotes": 13, "Percent": 0.4615 }, { "pollaqid": 2, "Answer": "Average", "Votes": 4, "pollqid": 2, "Question": "How was Pizza Mercato?", "Place": "Pizza Mercato", "Time": 1344361527, "TotalVotes": 13, "Percent": 0.3077 }, { "pollaqid": 2, "Answer": "Poor", "Votes": 1, "pollqid": 2, "Question": "How was Pizza Mercato?", "Place": "Pizza Mercato", "Time": 1344361527, "TotalVotes": 13, "Percent": 0.0769 }, { "pollaqid": 2, "Answer": "Never Again", "Votes": 2, "pollqid": 2, "Question": "How was Pizza Mercato?", "Place": "Pizza Mercato", "Time": 1344361527, "TotalVotes": 13, "Percent": 0.1538 }, { "pollaqid": 3, "Answer": "Excellent", "Votes": 1, "pollqid": 3, "Question": "How was Maffei's Pizza?", "Place": "Maffei's Pizza", "Time": 1348120800, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 3, "Answer": "Good", "Votes": 1, "pollqid": 3, "Question": "How was Maffei's Pizza?", "Place": "Maffei's Pizza", "Time": 1348120800, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 3, "Answer": "Average", "Votes": 3, "pollqid": 3, "Question": "How was Maffei's Pizza?", "Place": "Maffei's Pizza", "Time": 1348120800, "TotalVotes": 7, "Percent": 0.4286 }, { "pollaqid": 3, "Answer": "Poor", "Votes": 1, "pollqid": 3, "Question": "How was Maffei's Pizza?", "Place": "Maffei's Pizza", "Time": 1348120800, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 3, "Answer": "Never Again", "Votes": 1, "pollqid": 3, "Question": "How was Maffei's Pizza?", "Place": "Maffei's Pizza", "Time": 1348120800, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 4, "Answer": "Excellent", "Votes": 4, "pollqid": 4, "Question": "How was Naples 45?", "Place": "Naples 45", "Time": 1350496849, "TotalVotes": 8, "Percent": 0.5 }, { "pollaqid": 4, "Answer": "Good", "Votes": 2, "pollqid": 4, "Question": "How was Naples 45?", "Place": "Naples 45", "Time": 1350496849, "TotalVotes": 8, "Percent": 0.25 }, { "pollaqid": 4, "Answer": "Average", "Votes": 1, "pollqid": 4, "Question": "How was Naples 45?", "Place": "Naples 45", "Time": 1350496849, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 4, "Answer": "Poor", "Votes": 1, "pollqid": 4, "Question": "How was Naples 45?", "Place": "Naples 45", "Time": 1350496849, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 4, "Answer": "Never Again", "Votes": 0, "pollqid": 4, "Question": "How was Naples 45?", "Place": "Naples 45", "Time": 1350496849, "TotalVotes": 8, "Percent": 0 }, { "pollaqid": 5, "Answer": "Excellent", "Votes": 1, "pollqid": 5, "Question": "How was Ben's of SoHo 14th Street?", "Place": "Ben's of SoHo 14th Street", "Time": 1354210241, "TotalVotes": 5, "Percent": 0.2 }, { "pollaqid": 5, "Answer": "Good", "Votes": 1, "pollqid": 5, "Question": "How was Ben's of SoHo 14th Street?", "Place": "Ben's of SoHo 14th Street", "Time": 1354210241, "TotalVotes": 5, "Percent": 0.2 }, { "pollaqid": 5, "Answer": "Average", "Votes": 0, "pollqid": 5, "Question": "How was Ben's of SoHo 14th Street?", "Place": "Ben's of SoHo 14th Street", "Time": 1354210241, "TotalVotes": 5, "Percent": 0 }, { "pollaqid": 5, "Answer": "Poor", "Votes": 3, "pollqid": 5, "Question": "How was Ben's of SoHo 14th Street?", "Place": "Ben's of SoHo 14th Street", "Time": 1354210241, "TotalVotes": 5, "Percent": 0.6 }, { "pollaqid": 5, "Answer": "Never Again", "Votes": 0, "pollqid": 5, "Question": "How was Ben's of SoHo 14th Street?", "Place": "Ben's of SoHo 14th Street", "Time": 1354210241, "TotalVotes": 5, "Percent": 0 }, { "pollaqid": 6, "Answer": "Excellent", "Votes": 2, "pollqid": 6, "Question": "How was Mariella?", "Place": "Mariella", "Time": 1359655855, "TotalVotes": 28, "Percent": 0.0714 }, { "pollaqid": 6, "Answer": "Good", "Votes": 10, "pollqid": 6, "Question": "How was Mariella?", "Place": "Mariella", "Time": 1359655855, "TotalVotes": 28, "Percent": 0.3571 }, { "pollaqid": 6, "Answer": "Average", "Votes": 12, "pollqid": 6, "Question": "How was Mariella?", "Place": "Mariella", "Time": 1359655855, "TotalVotes": 28, "Percent": 0.4286 }, { "pollaqid": 6, "Answer": "Poor", "Votes": 4, "pollqid": 6, "Question": "How was Mariella?", "Place": "Mariella", "Time": 1359655855, "TotalVotes": 28, "Percent": 0.1429 }, { "pollaqid": 6, "Answer": "Never Again", "Votes": 0, "pollqid": 6, "Question": "How was Mariella?", "Place": "Mariella", "Time": 1359655855, "TotalVotes": 28, "Percent": 0 }, { "pollaqid": 8, "Answer": "Excellent", "Votes": 1, "pollqid": 8, "Question": "How Was Roio's?", "Place": "Roio's", "Time": 1360688763, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 8, "Answer": "Good", "Votes": 0, "pollqid": 8, "Question": "How Was Roio's?", "Place": "Roio's", "Time": 1360688763, "TotalVotes": 7, "Percent": 0 }, { "pollaqid": 8, "Answer": "Average", "Votes": 5, "pollqid": 8, "Question": "How Was Roio's?", "Place": "Roio's", "Time": 1360688763, "TotalVotes": 7, "Percent": 0.7143 }, { "pollaqid": 8, "Answer": "Poor", "Votes": 1, "pollqid": 8, "Question": "How Was Roio's?", "Place": "Roio's", "Time": 1360688763, "TotalVotes": 7, "Percent": 0.1429 }, { "pollaqid": 8, "Answer": "Never Again", "Votes": 0, "pollqid": 8, "Question": "How Was Roio's?", "Place": "Roio's", "Time": 1360688763, "TotalVotes": 7, "Percent": 0 }, { "pollaqid": 9, "Answer": "Excellent", "Votes": 1, "pollqid": 9, "Question": "How was Vinny Vincenz?", "Place": "Vinny Vincenz", "Time": 1365526334, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 9, "Answer": "Good", "Votes": 3, "pollqid": 9, "Question": "How was Vinny Vincenz?", "Place": "Vinny Vincenz", "Time": 1365526334, "TotalVotes": 8, "Percent": 0.375 }, { "pollaqid": 9, "Answer": "Average", "Votes": 3, "pollqid": 9, "Question": "How was Vinny Vincenz?", "Place": "Vinny Vincenz", "Time": 1365526334, "TotalVotes": 8, "Percent": 0.375 }, { "pollaqid": 9, "Answer": "Poor", "Votes": 0, "pollqid": 9, "Question": "How was Vinny Vincenz?", "Place": "Vinny Vincenz", "Time": 1365526334, "TotalVotes": 8, "Percent": 0 }, { "pollaqid": 9, "Answer": "Never Again", "Votes": 1, "pollqid": 9, "Question": "How was Vinny Vincenz?", "Place": "Vinny Vincenz", "Time": 1365526334, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 10, "Answer": "Excellent", "Votes": 1, "pollqid": 10, "Question": "How was Joe's Pizza?", "Place": "Joe's Pizza", "Time": 1366908424, "TotalVotes": 17, "Percent": 0.0588 }, { "pollaqid": 10, "Answer": "Good", "Votes": 4, "pollqid": 10, "Question": "How was Joe's Pizza?", "Place": "Joe's Pizza", "Time": 1366908424, "TotalVotes": 17, "Percent": 0.2353 }, { "pollaqid": 10, "Answer": "Average", "Votes": 8, "pollqid": 10, "Question": "How was Joe's Pizza?", "Place": "Joe's Pizza", "Time": 1366908424, "TotalVotes": 17, "Percent": 0.4706 }, { "pollaqid": 10, "Answer": "Poor", "Votes": 3, "pollqid": 10, "Question": "How was Joe's Pizza?", "Place": "Joe's Pizza", "Time": 1366908424, "TotalVotes": 17, "Percent": 0.1765 }, { "pollaqid": 10, "Answer": "Never Again", "Votes": 1, "pollqid": 10, "Question": "How was Joe's Pizza?", "Place": "Joe's Pizza", "Time": 1366908424, "TotalVotes": 17, "Percent": 0.0588 }, { "pollaqid": 11, "Answer": "Excellent", "Votes": 2, "pollqid": 11, "Question": "How was Pizza Bash?", "Place": "Pizza Bash", "Time": 1369933799, "TotalVotes": 6, "Percent": 0.3333 }, { "pollaqid": 11, "Answer": "Good", "Votes": 2, "pollqid": 11, "Question": "How was Pizza Bash?", "Place": "Pizza Bash", "Time": 1369933799, "TotalVotes": 6, "Percent": 0.3333 }, { "pollaqid": 11, "Answer": "Average", "Votes": 2, "pollqid": 11, "Question": "How was Pizza Bash?", "Place": "Pizza Bash", "Time": 1369933799, "TotalVotes": 6, "Percent": 0.3333 }, { "pollaqid": 11, "Answer": "Poor", "Votes": 0, "pollqid": 11, "Question": "How was Pizza Bash?", "Place": "Pizza Bash", "Time": 1369933799, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 11, "Answer": "Never Again", "Votes": 0, "pollqid": 11, "Question": "How was Pizza Bash?", "Place": "Pizza Bash", "Time": 1369933799, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 12, "Answer": "Excellent", "Votes": 2, "pollqid": 12, "Question": "How was Fiore's?", "Place": "Fiore's", "Time": 1371490081, "TotalVotes": 6, "Percent": 0.3333 }, { "pollaqid": 12, "Answer": "Good", "Votes": 3, "pollqid": 12, "Question": "How was Fiore's?", "Place": "Fiore's", "Time": 1371490081, "TotalVotes": 6, "Percent": 0.5 }, { "pollaqid": 12, "Answer": "Average", "Votes": 1, "pollqid": 12, "Question": "How was Fiore's?", "Place": "Fiore's", "Time": 1371490081, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 12, "Answer": "Poor", "Votes": 0, "pollqid": 12, "Question": "How was Fiore's?", "Place": "Fiore's", "Time": 1371490081, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 12, "Answer": "Never Again", "Votes": 0, "pollqid": 12, "Question": "How was Fiore's?", "Place": "Fiore's", "Time": 1371490081, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 13, "Answer": "Excellent", "Votes": 4, "pollqid": 13, "Question": "How was Patsy's?", "Place": "Patsy's", "Time": 1374677826, "TotalVotes": 6, "Percent": 0.6667 }, { "pollaqid": 13, "Answer": "Good", "Votes": 1, "pollqid": 13, "Question": "How was Patsy's?", "Place": "Patsy's", "Time": 1374677826, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 13, "Answer": "Average", "Votes": 1, "pollqid": 13, "Question": "How was Patsy's?", "Place": "Patsy's", "Time": 1374677826, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 13, "Answer": "Poor", "Votes": 0, "pollqid": 13, "Question": "How was Patsy's?", "Place": "Patsy's", "Time": 1374677826, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 13, "Answer": "Never Again", "Votes": 0, "pollqid": 13, "Question": "How was Patsy's?", "Place": "Patsy's", "Time": 1374677826, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 14, "Answer": "Excellent", "Votes": 2, "pollqid": 14, "Question": "How was Prince Street Pizza?", "Place": "Prince Street Pizza", "Time": 1376933037, "TotalVotes": 4, "Percent": 0.5 }, { "pollaqid": 14, "Answer": "Good", "Votes": 1, "pollqid": 14, "Question": "How was Prince Street Pizza?", "Place": "Prince Street Pizza", "Time": 1376933037, "TotalVotes": 4, "Percent": 0.25 }, { "pollaqid": 14, "Answer": "Average", "Votes": 1, "pollqid": 14, "Question": "How was Prince Street Pizza?", "Place": "Prince Street Pizza", "Time": 1376933037, "TotalVotes": 4, "Percent": 0.25 }, { "pollaqid": 14, "Answer": "Poor", "Votes": 0, "pollqid": 14, "Question": "How was Prince Street Pizza?", "Place": "Prince Street Pizza", "Time": 1376933037, "TotalVotes": 4, "Percent": 0 }, { "pollaqid": 14, "Answer": "Never Again", "Votes": 0, "pollqid": 14, "Question": "How was Prince Street Pizza?", "Place": "Prince Street Pizza", "Time": 1376933037, "TotalVotes": 4, "Percent": 0 }, { "pollaqid": 15, "Answer": "Excellent", "Votes": 1, "pollqid": 15, "Question": "How was Rocco's Pizza Joint?", "Place": "Rocco's Pizza Joint", "Time": 1379421469, "TotalVotes": 4, "Percent": 0.25 }, { "pollaqid": 15, "Answer": "Good", "Votes": 2, "pollqid": 15, "Question": "How was Rocco's Pizza Joint?", "Place": "Rocco's Pizza Joint", "Time": 1379421469, "TotalVotes": 4, "Percent": 0.5 }, { "pollaqid": 15, "Answer": "Average", "Votes": 0, "pollqid": 15, "Question": "How was Rocco's Pizza Joint?", "Place": "Rocco's Pizza Joint", "Time": 1379421469, "TotalVotes": 4, "Percent": 0 }, { "pollaqid": 15, "Answer": "Poor", "Votes": 1, "pollqid": 15, "Question": "How was Rocco's Pizza Joint?", "Place": "Rocco's Pizza Joint", "Time": 1379421469, "TotalVotes": 4, "Percent": 0.25 }, { "pollaqid": 15, "Answer": "Never Again", "Votes": 0, "pollqid": 15, "Question": "How was Rocco's Pizza Joint?", "Place": "Rocco's Pizza Joint", "Time": 1379421469, "TotalVotes": 4, "Percent": 0 }, { "pollaqid": 16, "Answer": "Excellent", "Votes": 1, "pollqid": 16, "Question": "How was NY Pizza Suprema?", "Place": "NY Pizza Suprema", "Time": 1382443522, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 16, "Answer": "Good", "Votes": 1, "pollqid": 16, "Question": "How was NY Pizza Suprema?", "Place": "NY Pizza Suprema", "Time": 1382443522, "TotalVotes": 8, "Percent": 0.125 }, { "pollaqid": 16, "Answer": "Average", "Votes": 3, "pollqid": 16, "Question": "How was NY Pizza Suprema?", "Place": "NY Pizza Suprema", "Time": 1382443522, "TotalVotes": 8, "Percent": 0.375 }, { "pollaqid": 16, "Answer": "Poor", "Votes": 3, "pollqid": 16, "Question": "How was NY Pizza Suprema?", "Place": "NY Pizza Suprema", "Time": 1382443522, "TotalVotes": 8, "Percent": 0.375 }, { "pollaqid": 16, "Answer": "Never Again", "Votes": 0, "pollqid": 16, "Question": "How was NY Pizza Suprema?", "Place": "NY Pizza Suprema", "Time": 1382443522, "TotalVotes": 8, "Percent": 0 }, { "pollaqid": 17, "Answer": "Excellent", "Votes": 0, "pollqid": 17, "Question": "How was J's?", "Place": "J's", "Time": 1384445229, "TotalVotes": 13, "Percent": 0 }, { "pollaqid": 17, "Answer": "Good", "Votes": 6, "pollqid": 17, "Question": "How was J's?", "Place": "J's", "Time": 1384445229, "TotalVotes": 13, "Percent": 0.4615 }, { "pollaqid": 17, "Answer": "Average", "Votes": 6, "pollqid": 17, "Question": "How was J's?", "Place": "J's", "Time": 1384445229, "TotalVotes": 13, "Percent": 0.4615 }, { "pollaqid": 17, "Answer": "Poor", "Votes": 1, "pollqid": 17, "Question": "How was J's?", "Place": "J's", "Time": 1384445229, "TotalVotes": 13, "Percent": 0.0769 }, { "pollaqid": 17, "Answer": "Never Again", "Votes": 0, "pollqid": 17, "Question": "How was J's?", "Place": "J's", "Time": 1384445229, "TotalVotes": 13, "Percent": 0 }, { "pollaqid": 18, "Answer": "Excellent", "Votes": 8, "pollqid": 18, "Question": "How was Tappo?", "Place": "Tappo", "Time": 1386772733, "TotalVotes": 19, "Percent": 0.4211 }, { "pollaqid": 18, "Answer": "Good", "Votes": 7, "pollqid": 18, "Question": "How was Tappo?", "Place": "Tappo", "Time": 1386772733, "TotalVotes": 19, "Percent": 0.3684 }, { "pollaqid": 18, "Answer": "Average", "Votes": 3, "pollqid": 18, "Question": "How was Tappo?", "Place": "Tappo", "Time": 1386772733, "TotalVotes": 19, "Percent": 0.1579 }, { "pollaqid": 18, "Answer": "Poor", "Votes": 1, "pollqid": 18, "Question": "How was Tappo?", "Place": "Tappo", "Time": 1386772733, "TotalVotes": 19, "Percent": 0.0526 }, { "pollaqid": 18, "Answer": "Never Again", "Votes": 0, "pollqid": 18, "Question": "How was Tappo?", "Place": "Tappo", "Time": 1386772733, "TotalVotes": 19, "Percent": 0 }, { "pollaqid": 19, "Answer": "Excellent", "Votes": 2, "pollqid": 19, "Question": "How was Joe's Pizza 14th?", "Place": "Joe's Pizza 14th", "Time": 1391005843, "TotalVotes": 9, "Percent": 0.2222 }, { "pollaqid": 19, "Answer": "Good", "Votes": 2, "pollqid": 19, "Question": "How was Joe's Pizza 14th?", "Place": "Joe's Pizza 14th", "Time": 1391005843, "TotalVotes": 9, "Percent": 0.2222 }, { "pollaqid": 19, "Answer": "Average", "Votes": 3, "pollqid": 19, "Question": "How was Joe's Pizza 14th?", "Place": "Joe's Pizza 14th", "Time": 1391005843, "TotalVotes": 9, "Percent": 0.3333 }, { "pollaqid": 19, "Answer": "Poor", "Votes": 1, "pollqid": 19, "Question": "How was Joe's Pizza 14th?", "Place": "Joe's Pizza 14th", "Time": 1391005843, "TotalVotes": 9, "Percent": 0.1111 }, { "pollaqid": 19, "Answer": "Never Again", "Votes": 1, "pollqid": 19, "Question": "How was Joe's Pizza 14th?", "Place": "Joe's Pizza 14th", "Time": 1391005843, "TotalVotes": 9, "Percent": 0.1111 }, { "pollaqid": 20, "Answer": "Excellent", "Votes": 0, "pollqid": 20, "Question": "How was Nonna's LES Pizza?", "Place": "Nonna's LES Pizza", "Time": 1393514428, "TotalVotes": 9, "Percent": 0 }, { "pollaqid": 20, "Answer": "Good", "Votes": 2, "pollqid": 20, "Question": "How was Nonna's LES Pizza?", "Place": "Nonna's LES Pizza", "Time": 1393514428, "TotalVotes": 9, "Percent": 0.2222 }, { "pollaqid": 20, "Answer": "Average", "Votes": 3, "pollqid": 20, "Question": "How was Nonna's LES Pizza?", "Place": "Nonna's LES Pizza", "Time": 1393514428, "TotalVotes": 9, "Percent": 0.3333 }, { "pollaqid": 20, "Answer": "Poor", "Votes": 3, "pollqid": 20, "Question": "How was Nonna's LES Pizza?", "Place": "Nonna's LES Pizza", "Time": 1393514428, "TotalVotes": 9, "Percent": 0.3333 }, { "pollaqid": 20, "Answer": "Never Again", "Votes": 1, "pollqid": 20, "Question": "How was Nonna's LES Pizza?", "Place": "Nonna's LES Pizza", "Time": 1393514428, "TotalVotes": 9, "Percent": 0.1111 }, { "pollaqid": 21, "Answer": "Excellent", "Votes": 1, "pollqid": 21, "Question": "How was Pizza 33?", "Place": "Pizza 33", "Time": 1395248377, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 21, "Answer": "Good", "Votes": 3, "pollqid": 21, "Question": "How was Pizza 33?", "Place": "Pizza 33", "Time": 1395248377, "TotalVotes": 6, "Percent": 0.5 }, { "pollaqid": 21, "Answer": "Average", "Votes": 1, "pollqid": 21, "Question": "How was Pizza 33?", "Place": "Pizza 33", "Time": 1395248377, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 21, "Answer": "Poor", "Votes": 1, "pollqid": 21, "Question": "How was Pizza 33?", "Place": "Pizza 33", "Time": 1395248377, "TotalVotes": 6, "Percent": 0.1667 }, { "pollaqid": 21, "Answer": "Never Again", "Votes": 0, "pollqid": 21, "Question": "How was Pizza 33?", "Place": "Pizza 33", "Time": 1395248377, "TotalVotes": 6, "Percent": 0 }, { "pollaqid": 22, "Answer": "Excellent", "Votes": 4, "pollqid": 22, "Question": "How was Saluggi's?", "Place": "Saluggi's", "Time": 1398776927, "TotalVotes": 20, "Percent": 0.2 }, { "pollaqid": 22, "Answer": "Good", "Votes": 10, "pollqid": 22, "Question": "How was Saluggi's?", "Place": "Saluggi's", "Time": 1398776927, "TotalVotes": 20, "Percent": 0.5 }, { "pollaqid": 22, "Answer": "Average", "Votes": 2, "pollqid": 22, "Question": "How was Saluggi's?", "Place": "Saluggi's", "Time": 1398776927, "TotalVotes": 20, "Percent": 0.1 }, { "pollaqid": 22, "Answer": "Poor", "Votes": 4, "pollqid": 22, "Question": "How was Saluggi's?", "Place": "Saluggi's", "Time": 1398776927, "TotalVotes": 20, "Percent": 0.2 }, { "pollaqid": 22, "Answer": "Never Again", "Votes": 0, "pollqid": 22, "Question": "How was Saluggi's?", "Place": "Saluggi's", "Time": 1398776927, "TotalVotes": 20, "Percent": 0 } ]
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] })
}
chart
.reduceXTicks(false)
chart.xAxis
.axisLabel("Pizzaplace ") .rotateLabels( -45)
chart.yAxis
.axisLabel("%")
d3.select("#" + opts.id)
.append('svg')
.datum(data)
.transition().duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
};
<script></script>