1 |
- "use strict";$(document).ready(function(){function e(e,t,a){return null==a&&(a="rgba(0,0,0,0)"),{labels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14"],datasets:[{label:"",borderColor:e,borderWidth:3,hitRadius:30,pointRadius:0,pointHoverRadius:4,pointBorderWidth:2,pointHoverBorderWidth:12,pointBackgroundColor:Chart.helpers.color("#000000").alpha(0).rgbString(),pointBorderColor:e,pointHoverBackgroundColor:e,pointHoverBorderColor:Chart.helpers.color("#000000").alpha(.1).rgbString(),fill:!0,lineTension:0,backgroundColor:Chart.helpers.color(a).alpha(.7).rgbString(),data:t}]}}function t(){return{title:{display:!1},tooltips:{intersect:!1,mode:"nearest",xPadding:10,yPadding:10,caretPadding:10},legend:{display:!1},hover:{mode:"index"},scales:{xAxes:[{display:!1,gridLines:!1,scaleLabel:{display:!0,labelString:"Month"}}],yAxes:[{display:!1,gridLines:!1,scaleLabel:{display:!0,labelString:"Value"},ticks:{min:1,max:50}}]},elements:{point:{radius:4,borderWidth:12}},layout:{padding:{left:0,right:0,top:0,bottom:0}}}}var a;AmCharts.makeChart("revenue-map",{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",title:"Revenue Market",gridAlpha:0,autoGridCount:!1}],graphs:[{id:"g1",valueAxis:"v2",bullet:"round",bulletBorderAlpha:1,bulletColor:"#FFFFFF",bulletSize:5,hideBulletsCount:50,lineThickness:2,lineColor:"#448aff",type:"smoothedLine",title:"Market Days",useLineColorForBulletBorder:!0,valueField:"market1",balloonText:"[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"},{id:"g2",valueAxis:"v2",bullet:"round",bulletBorderAlpha:1,bulletColor:"#FFFFFF",bulletSize:5,hideBulletsCount:50,lineThickness:2,lineColor:"#536dfe",type:"smoothedLine",title:"Market Days ALL",useLineColorForBulletBorder:!0,valueField:"market2",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,dashLength:1,minorGridEnabled:!0},legend:{useGraphSettings:!0,position:"top"},balloon:{borderThickness:1,shadowAlpha:0},export:{enabled:!0},dataProvider:[{date:"2013-01-16",market1:85,market2:75},{date:"2013-01-17",market1:74,market2:80},{date:"2013-01-18",market1:78,market2:88},{date:"2013-01-19",market1:85,market2:75},{date:"2013-01-20",market1:82,market2:89},{date:"2013-01-21",market1:83,market2:78},{date:"2013-01-22",market1:72,market2:92},{date:"2013-01-23",market1:85,market2:76}]});a=new GMaps({el:"#markers-map",lat:21.2334329,lng:72.866472,scrollwheel:!1}),a.addMarker({lat:21.2334329,lng:72.866472,title:"Marker with InfoWindow",infoWindow:{content:'<p><Phoenicoded></Phoenicoded> <br/> Buy Now at <a href="">Themeforest</a></p>'}});var r=document.getElementById("tot-lead").getContext("2d"),r=(new Chart(r,{type:"line",data:e("#536dfe",[30,15,25,35,30,20,15,20,25,40,25,30,22,31],"#536dfe"),options:t()}),document.getElementById("tot-vendor").getContext("2d")),r=(new Chart(r,{type:"line",data:e("#11c15b",[40,25,30,22,30,15,25,35,30,20,15,20,25,31],"#11c15b"),options:t()}),document.getElementById("invoice-gen").getContext("2d"));new Chart(r,{type:"line",data:e("#448aff",[25,30,20,15,20,25,31,22,30,15,25,35,30,40],"#448aff"),options:t()})});
|