sibanu_web/public/assets/js/components/charts/chart-line.min.js

1 line
701 B
JavaScript
Raw Normal View History

2022-08-20 13:21:23 +07:00
"use strict";var SalesChart=function(){var a=$("#chart-sales-dark");a.length&&function(a){var t=new Chart(a,{type:"line",options:{scales:{yAxes:[{gridLines:{lineWidth:1,color:Charts.colors.gray[900],zeroLineColor:Charts.colors.gray[900]},ticks:{callback:function(a){if(!(a%10))return"$"+a+"k"}}}]},tooltips:{callbacks:{label:function(a,t){var e=t.datasets[a.datasetIndex].label||"",s=a.yLabel,l="";return t.datasets.length>1&&(l+='<span class="popover-body-label mr-auto">'+e+"</span>"),l+='<span class="popover-body-value">$'+s+"k</span>"}}}},data:{labels:["May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Performance",data:[0,20,10,30,15,40,20,60,60]}]}});a.data("chart",t)}(a)}();