import ChartPie19 from '../../../src/chart/pie/ChartPie19/ChartPie19.js'; import title from '../../../src/chart/commonOptions/title'; let chart=new ChartPie19(document.getElementsByClassName('c1')[0],{}); window.addEventListener("resize",()=>{ chart.resize(); }); const defaultOption = { title: title.option(''), pie19: { center: { x:"50%", y:"50%" }, width:"70%", lineLength:30, textMar:{ x:"0%", y:"0%" }, colorList:['#00a8ff', '#00eaff'], detailStyle:{ show:true, fontWeight:'normal', fontSize:14, // numShow:0 }, // textUnit:"%" }, series: [{ name: '实际值', value: '45%'} // , { // name: "目标值", // value: 60 // }, { // name: "最大值", // value: 100 // } ], bg:{ backgroundColor:"#000000" // backgroundColor:"#000000" }, }; // setTimeout(()=>{ // chart.setOption(defaultOption); // },3000)