import{t as e}from"./nc-progress.BEk4s69t.js";import{createBlock as t,createVNode as n,onMounted as r,openBlock as i,ref as a,resolveComponent as o,unref as s,watch as c,withCtx as l}from"/vue.js";function u(e){return{animationDuration:e.animationDuration,title:{text:`Pie Chart, contact`,x:`center`},tooltip:{trigger:`item`,formatter:`{a} <br/>{b} : {c} ({d}%)`},legend:{orient:`vertical`,left:`left`,data:[`Direct interview`,`Mail marketing`,`Affiliate advertising`,`Video ad`,`Search engine`]},series:[{name:`Source`,type:`pie`,radius:`55%`,center:[`50%`,`60%`],data:[{value:Math.floor(Math.random()*2e3+10),name:`Direct interview`},{value:Math.floor(Math.random()*2e3+10),name:`Mail marketing`},{value:Math.floor(Math.random()*2e3+10),name:`Affiliate advertising`},{value:Math.floor(Math.random()*2e3+10),name:`Video ad`},{value:Math.floor(Math.random()*2e3+10),name:`Search engine`}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:`rgba(0, 0, 0, 0.5)`}}}]}}function d(e){let t=[`Shirt`,`Cardigan`,`Pants`,`High heels`,`Sock`];return{animationDuration:e.animationDuration,title:{text:`Bar chart, sales`},tooltip:{},legend:{data:[`Sales`,`Profit`]},xAxis:{data:t},yAxis:{axisLabel:{show:!0}},series:[{type:`bar`,name:`Sales`,data:t.map(()=>Math.floor(Math.random()*40+10))},{type:`line`,name:`Profit`,data:t.map(()=>Math.floor(Math.random()*5+10)),symbol:`circle`,symbolSize:10,lineStyle:{width:2,shadowBlur:6,shadowOffsetX:0,shadowOffsetY:5,shadowColor:`rgba(0, 0, 0, 0.4)`}}]}}var f=`null`,p=`light`,m=Object.assign({name:`NcChartDemo`},{__name:`nc-chart-demo`,setup(m){console.debug(`* nc-chart-demo lazy-loaded`);let h={animationDuration:200,renderer:`svg`},g={renderer:h.renderer||`svg`},_=u(h),v=d(h),y=a(null);return r(()=>{e.start(),c(y,()=>{console.log(`barRef`,y),e.done()})}),(e,r)=>{let a=o(`nc-chart`),c=o(`nc-col`),u=o(`nc-row`),d=o(`nc-form`);return i(),t(d,{id:`nc-chart-demo`},{default:l(()=>[n(u,null,{default:l(()=>[n(c,{width:`auto`},{default:l(()=>[n(a,{class:`nc-chart-demo`,ref:`pieRef`,options:s(_),"auto-resize":``,theme:f,"init-options":g},null,8,[`options`])]),_:1}),n(c,{width:`auto`},{default:l(()=>[n(a,{class:`nc-chart-demo`,ref_key:`barRef`,ref:y,options:s(v),"auto-resize":``,theme:p,"init-options":g},null,8,[`options`])]),_:1})]),_:1})]),_:1})}}});export{m as default};