????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/AppEchart-6c999d16.js

import{j as t,z as n,s as p,d as h,E as i,ai as c,aj as r}from"./index-9bcd78a9.js";import{E as l}from"./index-35c07bce.js";const m={grid:{left:0,top:0,right:0,bottom:0},xAxis:{show:!1,type:"category",showGrid:!1,boundaryGap:!1},yAxis:{show:!1,type:"value",splitLine:{show:!1}},series:[{data:[25,18,20,30,40,43],type:"line",areaStyle:{},smooth:!0}]},x=({height:e,color:a})=>t.jsx(l,{style:{height:e},option:{...m,color:[...a]}}),y=({height:e,color:a=[]})=>{const o=n(),s={grid:{top:"10%",bottom:"10%",right:"5%"},legend:{show:!1},color:["#223388","rgba(34, 51, 136, 0.8)"],barGap:0,barMaxWidth:"64px",dataset:{source:[["Month","Website","App"],["Jan",2200,1200],["Feb",800,500],["Mar",700,1350],["Apr",1500,1250],["May",2450,450],["June",1700,1250]]},xAxis:{type:"category",axisLine:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{fontSize:13,fontFamily:"roboto",color:o.palette.text.secondary}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:o.palette.text.secondary,opacity:.15}},axisLabel:{fontSize:13,fontFamily:"roboto",color:o.palette.text.secondary}},series:[{type:"bar"},{type:"bar"}]};return t.jsx(l,{style:{height:e},option:{...s}})},f=({height:e,color:a=[]})=>{const o=n(),s={legend:{show:!0,itemGap:20,icon:"circle",bottom:0,textStyle:{color:o.palette.text.secondary,fontSize:13,fontFamily:"roboto"}},tooltip:{show:!1,trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},xAxis:[{axisLine:{show:!1},splitLine:{show:!1}}],yAxis:[{axisLine:{show:!1},splitLine:{show:!1}}],series:[{name:"Traffic Rate",type:"pie",radius:["45%","72.55%"],center:["50%","50%"],avoidLabelOverlap:!1,hoverOffset:5,stillShowZeroSum:!1,label:{normal:{show:!1,position:"center",textStyle:{color:o.palette.text.secondary,fontSize:13,fontFamily:"roboto"},formatter:"{a}"},emphasis:{show:!0,textStyle:{fontSize:"14",fontWeight:"normal"},formatter:`{b} 
{c} ({d}%)`}},labelLine:{normal:{show:!1}},data:[{value:65,name:"Google"},{value:20,name:"Facebook"},{value:15,name:"Others"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};return t.jsx(l,{style:{height:e},option:{...s,color:[...a]}})},d=({height:e,color:a=[]})=>{const o=n(),s={grid:{top:"10%",bottom:"10%",left:"5%",right:"5%"},legend:{itemGap:20,icon:"circle",textStyle:{color:o.palette.text.secondary,fontSize:13,fontFamily:"roboto"}},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisLine:{show:!1},axisTick:{show:!1},axisLabel:{fontSize:14,fontFamily:"roboto",color:o.palette.text.secondary}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:o.palette.text.secondary,opacity:.15}},axisLabel:{color:o.palette.text.secondary,fontSize:13,fontFamily:"roboto"}},series:[{data:[30,40,20,50,40,80,90],type:"line",stack:"This month",name:"This month",smooth:!0,symbolSize:4,lineStyle:{width:4}},{data:[20,50,15,50,30,70,95],type:"line",stack:"Last month",name:"Last month",smooth:!0,symbolSize:4,lineStyle:{width:4}}]};return t.jsx(l,{style:{height:e},option:{...s,color:[...a]}})},b=p("div")(({theme:e})=>({margin:"30px",[e.breakpoints.down("sm")]:{margin:"16px"},"& .breadcrumb":{marginBottom:"30px",[e.breakpoints.down("sm")]:{marginBottom:"16px"}}})),w=()=>{const e=h();return t.jsxs(b,{children:[t.jsx(i,{className:"breadcrumb",children:t.jsx(c,{routeSegments:[{name:"Charts",path:"/charts"},{name:"Echarts"}]})}),t.jsx(r,{title:"Doughnut Chart",children:t.jsx(f,{height:"350px",color:[e.palette.primary.dark,e.palette.primary.main,e.palette.primary.light]})}),t.jsx(i,{sx:{py:"12px"}}),t.jsx(r,{title:"Line Chart",children:t.jsx(d,{height:"350px",color:[e.palette.primary.main,e.palette.primary.light]})}),t.jsx(i,{sx:{py:"12px"}}),t.jsx(r,{title:"Comparison Chart",children:t.jsx(y,{height:"350px",color:[e.palette.primary.dark,e.palette.primary.light]})}),t.jsx(i,{sx:{py:"12px"}}),t.jsx(r,{title:"Area Chart",children:t.jsx(x,{height:"350px",color:[e.palette.primary.main]})})]})};export{w as default};