text: 'use strict';$(document).ready(function(){setTimeout(function(){nv.addGraph(function(){var chart=nv.models.lineChart().showLegend(true);chart.xAxis.axisLabel('Time (ms)').tickFormat(d3.format(',r'));chart.yAxis.axisLabel('Voltage (v)').tickFormat(d3.format('.02f'));var myData=sinAndCos();d3.select('#nvd3-line-1 svg').datum(myData).call(chart);nv.utils.windowResize(function(){chart.update()});return chart;});function sinAndCos(){var sin=[],sin2=[],cos=[];for(var i=0;i<100;i++){sin.push({x:i,y:Math.sin(i/10)});sin2.push({x:i,y:Math.sin(i/10)*0.25+0.5});cos.push({x:i,y:.5*Math.cos(i/10)});}
  return[{values:sin,key:'Sine Wave',color:'#A389D4'},{values:cos,key:'Cosine Wave',color:'#04a9f5'},{values:sin2,key:'Another sine wave',color:'#1de9b6',area:true}];}
  nv.addGraph(function(){var chart=nv.models.discreteBarChart().x(function(d){return d.label}).y(function(d){return d.value}).staggerLabels(true).showValues(true)
  d3.select('#nvd3-bar-1').append('svg').datum(barData()).call(chart);nv.utils.windowResize(chart.update);return chart;});function barData(){return[{key:"Cumulative Return",values:[{"label":"A","value":-29.765957771107,"color":"#3ebfea"},{"label":"B","value":10,"color":"#04a9f5"},{"label":"C","value":32.807804682612,"color":"#ff8a65"},{"label":"D","value":196.45946739256,"color":"#1de9b6"},{"label":"E","value":0.25434030906893,"color":"#4C5667"},{"label":"F","value":-98.079782601442,"color":"#69CEC6"},{"label":"G","value":-13.925743130903,"color":"#a389d4"},{"label":"H","value":-5.1387322875705,"color":"#FE8A7D"}]}]}
  nv.addGraph(function(){var chart=nv.models.multiBarChart().reduceXTicks(true).rotateLabels(0).showControls(true).groupSpacing(0.1).color(['#04a9f5','#A389D4','#1de9b6']);chart.xAxis.tickFormat(d3.format(',f'));chart.yAxis.tickFormat(d3.format(',.1f'));d3.select('#nvd3-multi-bar-1').append('svg').datum(stackedData()).call(chart);nv.utils.windowResize(chart.update);return chart;});function stackedData(){return stream_layers(3,10+Math.random()*100,.1).map(function(data,i){return{key:'Stream #'+i,values:data};});}
  nv.addGraph(function(){var chart=nv.models.pieChart().x(function(d){return d.label}).y(function(d){return d.value}).showLabels(true);d3.select("#nvd3-pie-1").append('svg').datum(pieData()).datum(pieData()).transition().duration(350).call(chart);nv.utils.windowResize(chart.update);return chart;});function pieData(){return[{"label":"One","value":29.765957771107,"color":"#ff8a65"},{"label":"Two","value":0,"color":"#f4c22b"},{"label":"Three","value":32.807804682612,"color":"#04a9f5"},{"label":"Four","value":196.45946739256,"color":"#3ebfea"},{"label":"Five","value":0.19434030906893,"color":"#4F5467"},{"label":"Six","value":98.079782601442,"color":"#1de9b6"},{"label":"Seven","value":13.925743130903,"color":"#a389d4"},{"label":"Eight","value":5.1387322875705,"color":"#FE8A7D"}];}
  nv.addGraph(function(){var chart=nv.models.pieChart().x(function(d){return d.label}).y(function(d){return d.value}).showLabels(true).labelThreshold(.05).labelType("percent").donut(true).donutRatio(0.35);d3.select("#nvd3-donut-1").append('svg').datum(donutData()).transition().duration(350).call(chart);nv.utils.windowResize(chart.update);return chart;});function donutData(){return[{"label":"One","value":29.765957771107,"color":"#ff8a65"},{"label":"Two","value":0,"color":"#f4c22b"},{"label":"Three","value":32.807804682612,"color":"#04a9f5"},{"label":"Four","value":196.45946739256,"color":"#3ebfea"},{"label":"Five","value":0.19434030906893,"color":"#4F5467"},{"label":"Six","value":98.079782601442,"color":"#1de9b6"},{"label":"Seven","value":13.925743130903,"color":"#a389d4"},{"label":"Eight","value":5.1387322875705,"color":"#FE8A7D"}];}},700);});