import{ref as p,onMounted as _,watch as g,resolveComponent as o,createBlock as w,openBlock as M,withCtx as n,createVNode as e,unref as l}from"/vue.js";import{I as m}from"./nc-main.DEgIQeOo.js";import"./service-worker.DGZzV4eE.js";function b(a){return{animationDuration:a.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 v(a){const t=["Shirt","Cardigan","Pants","High heels","Sock"];return{animationDuration:a.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)"}}]}}const D="null",x="light",O=Object.assign({name:"NcChartDemo"},{__name:"nc-chart-demo",setup(a){console.debug("* nc-chart-demo lazy-loaded");const t={animationDuration:200,renderer:"svg"},i={renderer:t.renderer},d=b(t),h=v(t),r=p(null);return _(()=>{m.start(),g(r,()=>{console.log("barRef",r),m.done()})}),(y,S)=>{const s=o("nc-chart"),c=o("nc-col"),f=o("nc-row"),u=o("nc-form");return M(),w(u,{id:"nc-chart-demo"},{default:n(()=>[e(f,null,{default:n(()=>[e(c,{width:"auto"},{default:n(()=>[e(s,{class:"nc-chart-demo",ref:"pieRef",options:l(d),"auto-resize":"",theme:D,"init-options":i},null,8,["options"])]),_:1}),e(c,{width:"auto"},{default:n(()=>[e(s,{class:"nc-chart-demo",ref_key:"barRef",ref:r,options:l(h),"auto-resize":"",theme:x,"init-options":i},null,8,["options"])]),_:1})]),_:1})]),_:1})}}});export{O as default};
