text: "use strict";function floatchart(){$(function(){})}$(document).ready(function(){$(function(){$("#selectall").click(function(){$(".case").attr("checked",this.checked)}),$(".case").click(function(){$(".case").length==$(".case:checked").length?$("#selectall").attr("checked","checked"):$("#selectall").removeAttr("checked")})});AmCharts.makeChart("product-sales-chart",{type:"serial",theme:"light",dataDateFormat:"YYYY-MM-DD",precision:2,valueAxes:[{id:"v1",title:"Sales",position:"left",autoGridCount:!1,labelFunction:function(e){return"$"+Math.round(e)+"M"}},{id:"v2",gridAlpha:.1,autoGridCount:!1}],graphs:[{id:"g1",valueAxis:"v2",lineThickness:0,fillAlphas:.9,lineColor:"#448aff",type:"smoothedLine",title:"Laptop",useLineColorForBulletBorder:!0,valueField:"market1",balloonText:"[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"},{id:"g2",valueAxis:"v2",fillAlphas:.9,bulletColor:"#ff5252",lineThickness:0,lineColor:"#ff5252",type:"smoothedLine",title:"TV",useLineColorForBulletBorder:!0,valueField:"market2",balloonText:"[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"},{id:"g3",valueAxis:"v2",fillAlphas:.9,bulletColor:"#9ccc65",lineThickness:0,lineColor:"#9ccc65",type:"smoothedLine",title:"Mobile",useLineColorForBulletBorder:!0,valueField:"sales1",balloonText:"[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"}],chartCursor:{pan:!0,valueLineEnabled:!0,valueLineBalloonEnabled:!0,cursorAlpha:0,valueLineAlpha:.2},categoryField:"date",categoryAxis:{parseDates:!0,gridAlpha:0,minorGridEnabled:!0},legend:{position:"top"},balloon:{borderThickness:1,shadowAlpha:0},export:{enabled:!0},dataProvider:[{date:"2013-01-01",market1:0,market2:0,sales1:0},{date:"2013-02-01",market1:0,market2:0,sales1:40},{date:"2013-03-01",market1:0,market2:0,sales1:0},{date:"2013-04-01",market1:30,market2:0,sales1:0},{date:"2013-05-01",market1:0,market2:20,sales1:0},{date:"2013-06-01",market1:25,market2:0,sales1:0},{date:"2013-07-01",market1:0,market2:0,sales1:0},{date:"2013-08-01",market1:0,market2:0,sales1:30},{date:"2013-09-01",market1:0,market2:0,sales1:0},{date:"2013-10-01",market1:0,market2:50,sales1:0},{date:"2013-11-01",market1:0,market2:0,sales1:65},{date:"2013-12-01",market1:0,market2:0,sales1:0}]});floatchart(),$(window).on("resize",function(){floatchart()}),$("#mobile-collapse").on("click",function(){setTimeout(function(){floatchart()},700)})});