<!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 = 'chart2cf8741848fd' class = 'rChart nvd3'></div>    
<script type='text/javascript'>

$(document).ready(function(){ drawchart2cf8741848fd() }); function drawchart2cf8741848fd(){
var opts = { "dom": "chart2cf8741848fd", "width": 800, "height": 400, "x": "x", "y": "y", "type": "point", "id": "chart2cf8741848fd" }, data = [ { "x": 55.37943050644, "y": 30.9307133284 }, { "x": 61.2487775869, "y": 27.54865786617 }, { "x": 50.9894529944, "y": 34.09335448044 }, { "x": 47.12226840761, "y": 32.99734889779 }, { "x": 49.61339567498, "y": 27.22210183065 }, { "x": 41.86040055449, "y": 34.30675292745 }, { "x": 50.64961576985, "y": 26.5417665189 }, { "x": 47.8716343337, "y": 30.20408497019 }, { "x": 52.03005874261, "y": 27.71744174501 }, { "x": 48.65594907181, "y": 29.24598182359 }, { "x": 43.09507731851, "y": 29.30243580248 }, { "x": 50.18291660672, "y": 30.64577016246 }, { "x": 43.23377734412, "y": 27.75132076412 }, { "x": 54.48503096971, "y": 24.48590055536 }, { "x": 40.85320143868, "y": 29.80837780176 }, { "x": 49.29061527914, "y": 28.50660039009 }, { "x": 52.28990888921, "y": 30.42156283601 }, { "x": 42.40191243455, "y": 28.30298038298 }, { "x": 56.9952765733, "y": 31.58452953141 }, { "x": 45.57330404548, "y": 30.05837486515 }, { "x": 47.46834854389, "y": 31.20677602497 }, { "x": 50.81666052983, "y": 28.01011979037 }, { "x": 48.31428071871, "y": 29.57733508371 }, { "x": 44.82024233995, "y": 30.68804217499 }, { "x": 52.04668964108, "y": 29.82124294203 }, { "x": 47.37888270892, "y": 33.30807493303 }, { "x": 52.53250186762, "y": 26.07418257358 }, { "x": 47.47638568613, "y": 31.512251023 }, { "x": 45.21374835523, "y": 30.02883731589 }, { "x": 49.52682820773, "y": 31.89142760812 }, { "x": 53.24719658805, "y": 29.80238301523 }, { "x": 51.21160899664, "y": 24.52049151323 }, { "x": 49.70532954869, "y": 30.84061169885 }, { "x": 40.26102964212, "y": 29.56324147548 }, { "x": 57.25721815946, "y": 28.0212893408 }, { "x": 49.80030161181, "y": 28.68706220763 }, { "x": 45.68001154465, "y": 30.1113270964 }, { "x": 48.99154880144, "y": 34.90412688955 }, { "x": 51.30627781364, "y": 30.37634714748 }, { "x": 42.40824308347, "y": 28.04060726324 }, { "x": 53.58654316138, "y": 33.80722093501 }, { "x": 51.23416364048, "y": 29.12296043561 }, { "x": 56.01383523153, "y": 28.34054780883 }, { "x": 54.93019635224, "y": 27.50553736248 }, { "x": 47.31029700469, "y": 28.65238167382 }, { "x": 47.54858629093, "y": 33.87033452793 }, { "x": 45.02241913719, "y": 31.81312286973 }, { "x": 48.19148535873, "y": 31.47305354285 }, { "x": 54.72177405648, "y": 30.29325060809 }, { "x": 58.96103505808, "y": 30.56624159348 }, { "x": 54.64204697932, "y": 31.17855344154 }, { "x": 40.85031165185, "y": 30.43169895315 }, { "x": 54.10939053082, "y": 30.31010646975 }, { "x": 55.18134381002, "y": 31.90765327261 }, { "x": 53.08710072065, "y": 29.66829459504 }, { "x": 45.72534818441, "y": 30.51000749114 }, { "x": 55.32255259242, "y": 28.20505528129 }, { "x": 53.64740729052, "y": 33.16794020941 }, { "x": 53.31328292179, "y": 32.78551725633 }, { "x": 48.09296398648, "y": 26.37548353654 }, { "x": 54.22945888897, "y": 29.56736064282 }, { "x": 50.55795942223, "y": 31.09971211342 }, { "x": 49.66114869172, "y": 30.96547247504 }, { "x": 57.43549048259, "y": 31.5216974579 }, { "x": 53.78611688323, "y": 29.10868396613 }, { "x": 35.62978753301, "y": 27.58933316075 }, { "x": 47.86728775461, "y": 30.60293347953 }, { "x": 42.56296852184, "y": 26.92170955281 }, { "x": 52.94395822855, "y": 31.27074144699 }, { "x": 47.78700244612, "y": 31.40590354951 }, { "x": 54.5065240116, "y": 26.18823427077 }, { "x": 52.33914170184, "y": 31.87784289911 }, { "x": 50.11020159334, "y": 29.55101578901 }, { "x": 49.57446084102, "y": 28.65236644922 }, { "x": 48.19366428673, "y": 30.89157488961 }, { "x": 50.99753250769, "y": 32.5612342138 }, { "x": 44.4587287265, "y": 33.1302602685 }, { "x": 53.36397035243, "y": 27.59890792762 }, { "x": 48.02943183313, "y": 29.12461006725 }, { "x": 46.28016207208, "y": 30.29276296365 }, { "x": 48.36943261608, "y": 30.13203815111 }, { "x": 59.37334413407, "y": 29.10992796941 }, { "x": 41.21000427327, "y": 25.31577522712 }, { "x": 48.25569545018, "y": 29.44323526498 }, { "x": 50.53294614559, "y": 27.63639273531 }, { "x": 47.31170609397, "y": 30.06625054513 }, { "x": 47.94365434044, "y": 28.32456597632 }, { "x": 51.91174168988, "y": 29.76477783951 }, { "x": 51.11257044271, "y": 28.51695485774 }, { "x": 46.6312274584, "y": 29.18330606163 }, { "x": 52.83716456935, "y": 29.24445847808 }, { "x": 50.8974182738, "y": 32.65673342399 }, { "x": 53.43170874744, "y": 31.43287261368 }, { "x": 43.36368169258, "y": 29.5354216235 }, { "x": 46.16041780889, "y": 27.54754619951 }, { "x": 49.03648745664, "y": 32.09507618186 }, { "x": 54.79525599041, "y": 27.12718562635 }, { "x": 47.3548431901, "y": 27.63506214323 }, { "x": 44.83556504525, "y": 28.44759032837 }, { "x": 53.85872745224, "y": 28.05537298105 } ]

  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>