Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
public
/
app-assets
/
js
/
scripts
/
Filename :
charts-chartist.min.js
back
Copy
new Chartist.Line("#ct1-chart",{labels:["Monday","Tuesday","Wednesday","Thursday","Friday"],series:[[12,9,7,8,5],[2,1,3.5,7,3],[1,3,4,5,6]]},{fullWidth:!0,chartPadding:{right:40}});var chart=new Chartist.Line("#ct2-chart",{labels:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],series:[[5,5,10,8,7,5,4,null,null,null,10,10,7,8,6,9],[10,15,null,12,null,10,12,15,null,null,12,null,14,null,null,null],[null,null,null,null,3,4,1,3,4,6,7,9,5,null,null,null],[{x:3,y:3},{x:4,y:3},{x:5,y:void 0},{x:6,y:4},{x:7,y:null},{x:8,y:4},{x:9,y:4}]]},{fullWidth:!0,chartPadding:{right:10},low:0}),times=function(e){return Array.apply(null,new Array(e))},data=times(52).map(Math.random).reduce(function(e,n,t){return e.labels.push(t+1),e.series.forEach(function(e){e.push(100*Math.random())}),e},{labels:[],series:times(4).map(function(){return new Array})}),options={showLine:!1,axisX:{labelInterpolationFnc:function(e,n){return n%13==0?"W"+e:null}}},responsiveOptions=[["screen and (min-width: 640px)",{axisX:{labelInterpolationFnc:function(e,n){return n%4==0?"W"+e:null}}}]];new Chartist.Line("#ct3-chart",data,options,responsiveOptions),new Chartist.Line("#ct4-chart",{labels:[1,2,3,4,5,6,7,8],series:[[5,9,7,8,5,3,5,4]]},{low:0,showArea:!0}),new Chartist.Line("#ct5-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,axisX:{showLabel:!1,showGrid:!1}}),(chart=new Chartist.Line("#ct6-chart",{labels:[1,2,3,4,5],series:[[12,9,7,8,5]]})).on("draw",function(e){if("point"===e.type){var n=new Chartist.Svg("path",{d:["M",e.x,e.y-15,"L",e.x-15,e.y+8,"L",e.x+15,e.y+8,"z"].join(" "),style:"fill-opacity: 1"},"ct-area");e.element.replace(n)}});data={labels:["W1","W2","W3","W4","W5","W6","W7","W8","W9","W10"],series:[[1,2,4,8,6,-2,-1,-4,-6,-2]]},options={high:10,low:-10,axisX:{labelInterpolationFnc:function(e,n){return n%2==0?e:null}}};new Chartist.Bar("#ct7-chart",data,options);data={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],series:[[5,4,3,7,5,10,3,4,8,10,6,8],[3,2,9,5,4,6,4,6,7,8,7,4]]},options={seriesBarDistance:10},responsiveOptions=[["screen and (max-width: 640px)",{seriesBarDistance:5,axisX:{labelInterpolationFnc:function(e){return e[0]}}}]];new Chartist.Bar("#ct8-chart",data,options,responsiveOptions);data={series:[5,3,4]};var sum=function(e,n){return e+n};new Chartist.Pie("#ct9-chart",data,{labelInterpolationFnc:function(e){return Math.round(e/data.series.reduce(sum)*100)+"%"}}),(chart=new Chartist.Pie("#ct10-chart",{series:[10,20,50,20,5,50,15],labels:[1,2,3,4,5,6,7]},{donut:!0,showLabel:!1})).on("draw",function(e){if("slice"===e.type){var n=e.element._node.getTotalLength();e.element.attr({"stroke-dasharray":n+"px "+n+"px"});var t={"stroke-dashoffset":{id:"anim"+e.index,dur:1e3,from:-n+"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":-n+"px"}),e.element.animate(t,!1)}}),chart.on("created",function(){window.__anim21278907124&&(clearTimeout(window.__anim21278907124),window.__anim21278907124=null),window.__anim21278907124=setTimeout(chart.update.bind(chart),1e4)});