Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ecommerce-dashboard.min.js 4.7KB

1
  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"],datasets:[{label:"",borderColor:e,borderWidth:2,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:a,data:t}]}}function t(){return{title:{display:!1},tooltips:{position:"nearest",mode:"index",intersect:!1,yPadding:10,xPadding:10},legend:{display:!1,labels:{usePointStyle:!1}},responsive:!0,maintainAspectRatio:!0,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:{beginAtZero:!0}}]},elements:{point:{radius:4,borderWidth:12}},layout:{padding:{left:10,right:10,top:10,bottom:10}}}}$('[data-toggle="tooltip"]').tooltip();var a=document.getElementById("sale-report-1").getContext("2d"),a=(new Chart(a,{type:"bar",data:e("#448aff",[25,30,15,20,25,30,15,1],"#448aff"),options:t()}),document.getElementById("sale-report-2").getContext("2d")),a=(new Chart(a,{type:"bar",data:e("#11c15b",[15,20,25,10,12,30,15,1],"#11c15b"),options:t()}),document.getElementById("sale-report-3").getContext("2d")),a=(new Chart(a,{type:"bar",data:e("#536dfe",[15,20,25,10,30,15,25,1],"#536dfe"),options:t()}),document.getElementById("sale-report-4").getContext("2d")),a=(new Chart(a,{type:"bar",data:e("#ff5252",[30,15,25,35,30,20,15,1],"#ff5252"),options:t()}),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:"#11c15b",lineThickness:0,lineColor:"#11c15b",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}]}),document.getElementById("sale-chart1").getContext("2d"));new Chart(a,{type:"line",data:function(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","15"],datasets:[{label:"",borderColor:e,borderWidth:2,hitRadius:30,pointRadius:3,pointHoverRadius:4,pointBorderWidth:5,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:a,data:t}]}}("#b71c1c",[25,30,15,20,25,30,15,25,35,30,20,10,12,1],"transparent"),options:function(){return{title:{display:!1},tooltips:{position:"nearest",mode:"index",intersect:!1,yPadding:10,xPadding:10},legend:{display:!1,labels:{usePointStyle:!1}},responsive:!0,maintainAspectRatio:!0,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:{beginAtZero:!0}}]},elements:{point:{radius:4,borderWidth:12}},layout:{padding:{left:10,right:10,top:25,bottom:25}}}}()})});