bitslip6/bitfire

View on GitHub
public/dashkit.min.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";!function(){var e=document.getElementById("audienceChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"line",options:{scales:{yAxes:[{id:"yAxisOne",type:"linear",display:"auto",gridLines:{color:"#283E59",zeroLineColor:"#283E59"},ticks:{callback:function(e){return e+"k"}}},{id:"yAxisTwo",type:"linear",display:"auto",gridLines:{color:"#283E59",zeroLineColor:"#283E59"},ticks:{callback:function(e){return e+"%"}}}]}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Customers",data:[0,10,5,15,10,20,15,25,20,30,25,40],yAxisID:"yAxisOne"},{label:"Sessions",data:[50,75,35,25,55,87,67,53,25,80,87,45],yAxisID:"yAxisOne",hidden:!0},{label:"Conversion",data:[40,57,25,50,57,32,46,28,59,34,52,48],yAxisID:"yAxisTwo",hidden:!0}]}})}(),function(){var e=document.getElementById("conversionsChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"bar",options:{scales:{yAxes:[{ticks:{callback:function(e){return e+"%"}}}]}},data:{labels:["Oct 1","Oct 2","Oct 3","Oct 4","Oct 5","Oct 6","Oct 7","Oct 8","Oct 9","Oct 10","Oct 11","Oct 12"],datasets:[{label:"2020",data:[25,20,30,22,17,10,18,26,28,26,20,32]},{label:"2019",data:[15,10,20,12,7,0,8,16,18,16,10,22],backgroundColor:"#d2ddec",hidden:!0}]}})}(),function(){var e=document.getElementById("trafficChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"doughnut",options:{tooltips:{callbacks:{afterLabel:function(){return"%"}}}},data:{labels:["Direct","Organic","Referral"],datasets:[{data:[60,25,15],backgroundColor:["#2C7BE5","#A6C5F7","#D2DDEC"]},{data:[15,45,20],backgroundColor:["#2C7BE5","#A6C5F7","#D2DDEC"],hidden:!0}]}})}(),function(){var e=document.getElementById("trafficChartAlt");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"doughnut",options:{tooltips:{callbacks:{afterLabel:function(){return"%"}}}},data:{labels:["Direct","Organic","Referral"],datasets:[{data:[60,25,15],backgroundColor:["#2C7BE5","#A6C5F7","#D2DDEC"]},{data:[15,45,20],backgroundColor:["#2C7BE5","#A6C5F7","#D2DDEC"],hidden:!0}]}})}(),function(){var e=document.getElementById("salesChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"line",options:{scales:{yAxes:[{ticks:{callback:function(e){return"$"+e+"k"}}}]}},data:{labels:["Oct 1","Oct 3","Oct 6","Oct 9","Oct 12","Oct 5","Oct 18","Oct 21","Oct 24","Oct 27","Oct 30"],datasets:[{label:"All",data:[0,10,5,15,10,20,15,25,20,30,25]},{label:"Direct",data:[7,40,12,27,34,17,19,30,28,32,24],hidden:!0},{label:"Organic",data:[2,12,35,25,36,25,34,16,4,14,15],hidden:!0}]}})}(),function(){var e=document.getElementById("ordersChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"bar",options:{scales:{yAxes:[{ticks:{callback:function(e){return"$"+e+"k"}}}]}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Sales",data:[25,20,30,22,17,10,18,26,28,26,20,32]},{label:"Affiliate",data:[15,10,20,12,7,0,8,16,18,16,10,22],backgroundColor:"#d2ddec",hidden:!0}]}})}(),function(){var e=document.getElementById("earningsChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"bar",options:{scales:{yAxes:[{id:"yAxisOne",type:"linear",display:"auto",ticks:{callback:function(e){return"$"+e+"k"}}},{id:"yAxisTwo",type:"linear",display:"auto",ticks:{callback:function(e){return e+"k"}}},{id:"yAxisThree",type:"linear",display:"auto",ticks:{callback:function(e){return e+"%"}}}]}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun"],datasets:[{label:"Earnings",data:[18,10,5,15,10,20,15,25,20,26,25,29,18,10,5,15,10,20],yAxisID:"yAxisOne"},{label:"Sessions",data:[50,75,35,25,55,87,67,53,25,80,87,45,50,75,35,25,55,19],yAxisID:"yAxisTwo",hidden:!0},{label:"Bounce",data:[40,57,25,50,57,32,46,28,59,34,52,48,40,57,25,50,57,29],yAxisID:"yAxisThree",hidden:!0}]}})}(),function(){var e=document.getElementById("weeklyHoursChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"bar",options:{scales:{yAxes:[{ticks:{callback:function(e){return e+"hrs"}}}]}},data:{labels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],datasets:[{data:[21,12,28,15,5,12,17,2]}]}})}(),function(){var e=document.getElementById("overviewChart");e&&new Chart(e,{type:"line",options:{scales:{yAxes:[{id:"yAxisOne",type:"linear",display:"auto",ticks:{callback:function(e){return"$"+e+"k"}}},{id:"yAxisTwo",type:"linear",display:"auto",ticks:{callback:function(e){return e+"hrs"}}}]}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Earned",data:[0,10,5,15,10,20,15,25,20,30,25,40],yAxisID:"yAxisOne"},{label:"Hours Worked",data:[7,35,12,27,34,17,19,30,28,32,24,39],yAxisID:"yAxisTwo",hidden:!0}]}})}(),function(){var e=document.getElementById("sparklineChart");"undefined"!=typeof Chart&&e&&new Chart(e,{type:"line",options:{scales:{yAxes:[{display:!1}],xAxes:[{display:!1}]},elements:{line:{borderWidth:2},point:{hoverRadius:0}},tooltips:{custom:function(){return!1}}},data:{labels:new Array(12),datasets:[{data:[0,15,10,25,30,15,40,50,80,60,55,65]}]}})}(),function(){var e=document.querySelectorAll("#sparklineChartSocialOne, #sparklineChartSocialTwo, #sparklineChartSocialThree, #sparklineChartSocialFour");"undefined"!=typeof Chart&&e&&[].forEach.call(e,function(e){new Chart(e,{type:"line",options:{scales:{yAxes:[{display:!1}],xAxes:[{display:!1}]},elements:{line:{borderWidth:2,borderColor:"#D2DDEC"},point:{hoverRadius:0}},tooltips:{custom:function(){return!1}}},data:{labels:new Array(12),datasets:[{data:[0,15,10,25,30,15,40,50,80,60,55,65]}]}})})}(),function(){var e=document.getElementById("feedChart");e&&new Chart(e,{type:"bar",options:{scales:{yAxes:[{ticks:{callback:function(e){return"$"+e+"k"}}}]}},data:{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Sales",data:[25,20,30,22,17,10,18,26,28,26,20,32]},{label:"Affiliate",data:[15,10,20,12,7,0,8,16,18,16,10,22],backgroundColor:"#d2ddec",hidden:!0}]}})}();