hand-detection/assets/scripts/chart.chartist.init.min.js

2 lines
8.4 KiB
JavaScript
Raw Normal View History

2024-05-29 03:18:12 +00:00
!function(e){"use strict";var a={};e(document).ready(function(){return e("#area-chartist-chart").length&&a.area(),e("#bar-chartist-chart").length&&a.bar(),e("#bi-polar-area-chartist-chart").length&&a.biPolarArea(),e("#bi-polar-bar-chartist-chart").length&&a.biPolarBar(),e("#donut-bar-chartist-chart").length&&a.donut(),e("#donut-animation-bar-chartist-chart").length&&a.donutAnimation(),e("#gauge-bar-chartist-chart").length&&a.gauge(),e("#horizontal-bar-chartist-chart").length&&a.horizontalBar(),e("#line-chartist-chart").length&&a.line(),e("#pie-bar-chartist-chart").length&&a.pie(),e("#scatter-chartist-chart").length&&a.scatter(),e("#smil-animation-chartist-chart").length&&a.smilAnimation(),e("#smil-animation-index-chartist-chart").length&&a.smilAnimationIndex(),e("#stacked-bar-chartist-chart").length&&a.stackedBar(),e("#svg-animation-chartist-chart").length&&a.svgAnimation(),!1}),a={area:function(){return new Chartist.Line("#area-chartist-chart",{labels:[1,2,3,4,5,6,7,8],series:[[5,9,7,8,5,3,5,4]]},{low:0,showArea:!0,fullWidth:!0,axisY:{offset:10}}),!1},bar:function(){return new Chartist.Bar("#bar-chartist-chart",{labels:["Quarter 1","Quarter 2","Quarter 3","Quarter 4"],series:[[5,4,3,7],[3,2,9,5],[1,5,8,4],[2,3,4,6],[4,1,2,1]]},{stackBars:!0,axisX:{labelInterpolationFnc:function(e){return e.split(/\s+/).map(function(e){return e[0]}).join("")}},axisY:{offset:10}},[["screen and (min-width: 400px)",{reverseData:!0,horizontalBars:!0,axisX:{labelInterpolationFnc:Chartist.noop},axisY:{offset:20}}],["screen and (min-width: 800px)",{stackBars:!1,seriesBarDistance:10}],["screen and (min-width: 1000px)",{reverseData:!1,horizontalBars:!1,seriesBarDistance:15}]]),!1},biPolarArea:function(){return new Chartist.Line("#bi-polar-area-chartist-chart",{labels:[1,2,3,4,5,6,7,8],series:[[1,2,3,1,-2,0,1,0],[-2,-1,-2,-1,-2.5,-1,-2,-1],[0,0,0,1,2,2.5,2,1],[2.5,2,1,.5,1,.5,-1,-2.5]]},{high:3,low:-3,showArea:!0,showLine:!1,showPoint:!1,fullWidth:!0,axisY:{offset:20},axisX:{showLabel:!1,showGrid:!1}}),!1},biPolarBar:function(){var e={labels:["W1","W2","W3","W4","W5","W6","W7","W8","W9","W10"],series:[[1,2,4,8,6,-2,-1,-4,-6,-2]]},a={high:10,low:-10,axisX:{labelInterpolationFnc:function(e,a){return a%2===0?e:null}},fullWidth:!0,axisY:{offset:10}};return new Chartist.Bar("#bi-polar-bar-chartist-chart",e,a),!1},donut:function(){var e={series:[20,10,30,40]},a=function(e,a){return e+a};return new Chartist.Pie("#donut-bar-chartist-chart",e,{labelInterpolationFnc:function(t){return Math.round(t/e.series.reduce(a)*100)+"%"},donut:!0,donutWidth:80,startAngle:270}),!1},donutAnimation:function(){var e=new Chartist.Pie("#donut-animation-bar-chartist-chart",{series:[10,20,50,20,5,50,15],labels:[1,2,3,4,5,6,7]},{donut:!0,showLabel:!1});return e.on("draw",function(e){if("slice"===e.type){var a=e.element._node.getTotalLength();e.element.attr({"stroke-dasharray":a+"px "+a+"px"});var t={"stroke-dashoffset":{id:"anim"+e.index,dur:1e3,from:-a+"px",to:"0px",easing:Chartist.Svg.Easing.easeOutQuint,fill:"freeze"}};0!==e.index&&(t["stroke-dashoffset"].begin="anim"+(e.index-1)+".end"),e.element.attr({"stroke-dashoffset":-a+"px"}),e.element.animate(t,!1)}}),e.on("created",function(){window.__anim21278907124&&(clearTimeout(window.__anim21278907124),window.__anim21278907124=null),window.__anim21278907124=setTimeout(e.update.bind(e),1e4)}),!1},gauge:function(){return new Chartist.Pie("#gauge-bar-chartist-chart",{series:[20,10,30,40]},{donut:!0,donutWidth:60,startAngle:270,total:200,showLabel:!1}),!1},horizontalBar:function(){return new Chartist.Bar("#horizontal-bar-chartist-chart",{labels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],series:[[5,4,3,7,5,10,3],[3,2,9,5,4,6,4]]},{seriesBarDistance:10,reverseData:!0,horizontalBars:!0,axisY:{offset:70}}),!1},line:function(){return new Chartist.Line("#line-chartist-chart",{labels:["1","2","3","4","5"],series:[[12,9,7,8,5],[2,1,3.5,7,3],[1,3,4,5,6]]},{fullWidth:!0,axisY:{offset:10},chartPadding:{right:30}}),!1},pie:function(){var e={series:[5,3,4]},a=function(e,a){return e+a};return new Chartist.Pie("#pie