import{a as u}from"./chunk-AEY3DO2Q.js";import{a as g}from"./chunk-5L7ZGGVS.js";import{ab as C,bb as b,qa as m,ra as p,ua as h}from"./chunk-RIXYHOD2.js";import{Hc as s,Mb as i,Yb as a,Zb as t,_b as o,kb as n,oa as c,vc as r}from"./chunk-7RF4FE4V.js";import"./chunk-WWX6BADO.js";var D=(()=>{class d{constructor(){this.options={maintainAspectRatio:!1},this.months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.chartBarData={labels:[...this.months].slice(0,7),datasets:[{label:"GitHub Commits",backgroundColor:"#f87979",data:[40,20,12,39,17,42,79]}]},this.chartLineData={labels:[...this.months].slice(0,7),datasets:[{label:"My First dataset",backgroundColor:"rgba(220, 220, 220, 0.2)",borderColor:"rgba(220, 220, 220, 1)",pointBackgroundColor:"rgba(220, 220, 220, 1)",pointBorderColor:"#fff",data:[this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData]},{label:"My Second dataset",backgroundColor:"rgba(151, 187, 205, 0.2)",borderColor:"rgba(151, 187, 205, 1)",pointBackgroundColor:"rgba(151, 187, 205, 1)",pointBorderColor:"#fff",data:[this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData]}]},this.chartLineOptions={maintainAspectRatio:!1},this.chartDoughnutData={labels:["VueJs","EmberJs","ReactJs","Angular"],datasets:[{backgroundColor:["#41B883","#E46651","#00D8FF","#DD1B16"],data:[40,20,80,10]}]},this.chartPieData={labels:["Red","Green","Yellow"],datasets:[{data:[300,50,100],backgroundColor:["#FF6384","#36A2EB","#FFCE56"],hoverBackgroundColor:["#FF6384","#36A2EB","#FFCE56"]}]},this.chartPolarAreaData={labels:["Red","Green","Yellow","Grey","Blue"],datasets:[{data:[11,16,7,3,14],backgroundColor:["#FF6384","#4BC0C0","#FFCE56","#E7E9ED","#36A2EB"]}]},this.chartRadarData={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"2020",backgroundColor:"rgba(179,181,198,0.2)",borderColor:"rgba(179,181,198,1)",pointBackgroundColor:"rgba(179,181,198,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(179,181,198,1)",data:[65,59,90,81,56,55,40]},{label:"2021",backgroundColor:"rgba(255,99,132,0.2)",borderColor:"rgba(255,99,132,1)",pointBackgroundColor:"rgba(255,99,132,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(255,99,132,1)",data:[this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData,this.randomData]}]}}get randomData(){return Math.round(Math.random()*100)}static{this.\u0275fac=function(l){return new(l||d)}}static{this.\u0275cmp=c({type:d,selectors:[["app-charts"]],standalone:!0,features:[s],decls:43,vars:12,consts:[["xs","12"],["href","charts"],["xs","12","lg","6"],[1,"mb-4"],["type","bar",3,"data","options"],["type","line",3,"data","options"],["type","doughnut",3,"data","options"],["type","pie",3,"data","options"],["type","polarArea",3,"data","options"],["type","radar",3,"data","options"]],template:function(l,e){l&1&&(a(0,"c-row")(1,"c-col",0)(2,"app-docs-callout",1),r(3," CoreUI Angular wrapper component for Chart.js 4.4, the most popular charting library. "),o(4,"br"),t()(),a(5,"c-col",2)(6,"c-card",3)(7,"c-card-header"),r(8," Bar Chart "),t(),a(9,"c-card-body"),o(10,"c-chart",4),t()()(),a(11,"c-col",2)(12,"c-card",3)(13,"c-card-header"),r(14," Line Chart "),t(),a(15,"c-card-body"),o(16,"c-chart",5),t()()()(),a(17,"c-row")(18,"c-col",2)(19,"c-card",3)(20,"c-card-header"),r(21," Doughnut Chart "),t(),a(22,"c-card-body"),o(23,"c-chart",6),t()()(),a(24,"c-col",2)(25,"c-card",3)(26,"c-card-header"),r(27," Pie Chart "),t(),a(28,"c-card-body"),o(29,"c-chart",7),t()()()(),a(30,"c-row")(31,"c-col",2)(32,"c-card",3)(33,"c-card-header"),r(34," Polar Area Chart "),t(),a(35,"c-card-body"),o(36,"c-chart",8),t()()(),a(37,"c-col",2)(38,"c-card",3)(39,"c-card-header"),r(40," Radar Chart "),t(),a(41,"c-card-body"),o(42,"c-chart",9),t()()()()),l&2&&(n(10),i("data",e.chartBarData)("options",e.options),n(6),i("data",e.chartLineData)("options",e.options),n(7),i("data",e.chartDoughnutData)("options",e.options),n(6),i("data",e.chartPieData)("options",e.options),n(7),i("data",e.chartPolarAreaData)("options",e.options),n(6),i("data",e.chartRadarData)("options",e.options))},dependencies:[b,C,u,m,h,p,g]})}}return d})();var A=[{path:"",component:D,data:{title:"Charts"}}];export{A as routes};
