import ChartPie1 from '../../../src/chart/pie/ChartPie1/ChartPie1.js'; let chart = new ChartPie1(document.getElementsByClassName('c1')[0], {}); window.addEventListener("resize", () => { chart.resize(); }); // let s = { // "title": { // "text": "", // "left": "5%", // "top": "5%", // "textStyle": {"fontSize": 14, "fontWeight": "normal", "color": "#000000"} // }, // "legend": { // "show": false, // "orient": "vertical", // "left": "right", // "top": "5%", // "itemAngelR": 10, // "textStyle": {"fontSize": 12, "fontWeight": "normal", "color": "#7b7b7b"} // }, // "pie1": { // "center": {"x": "50%", "y": "50%"}, // "width": "70%", // "lineLength": 200, // "arcWidth": 10, // "detailStyle": {"show": true, "fontSize": 14, "fontWeight": "normal", "color": "#ffffff", "numShow": 0} // }, // "series": [{"name": "深圳", "maxValue": 1, "value": 1}, {"name": "四川", "maxValue": 3, "value": 3}, { // "name": "成都", // "maxValue": 3, // "value": 3 // }, {"name": "武汉", "maxValue": 1, "value": 1}, {"name": "上海", "maxValue": 3, "value": 3}, { // "name": "北京", // "maxValue": 3, // "value": 3 // }, {"name": "江苏", "maxValue": 1, "value": 1}], // "bg": {"backgroundColor": "#161729"}, // "noTheme": {}, // "useDashboardTheme": false, // // // } // setTimeout(v=>{ // chart.setOption(s); // },3000) //在这里 运行