import ChartDigit8 from '../../../src/chart/digit/ChartDigit8/ChartDigit8.js'; import Title from "../../../src/chart/commonOptions/title"; let chart = new ChartDigit8(document.getElementsByClassName('c1')[0], {}); window.addEventListener('resize', () => { chart.resize(); }); // setTimeout(() => { // chart.setOption({ // title:Title.option(''), // bg:{ // backgroundColor:"#1d1a2d" // }, // grid:{ // left: "28%", // right: "28%", // top: "21%", // bottom: "21%" // }, // container:{ // width: 185, // bgColor: '#2b2a50', // waterBg: '#82bad3', // waterBgYj: '#ff5080', // fontSize: 36, // fontColor: '#fff', // fontColorYj: '#000', // keepDecimal: false // }, // axis:{ // lineleft: 15, // lineWidth: 1, // lineColor: '#18c1f1', // fontSize: 16, // fontColor: '#18c1f1', // textAlign: 'left', // tagLineheight: 'middle', // tagLeft: 15, // tagTop: 0 // }, // series: [{ // name: '实际值', // value: '41%' // }, // { // name: '预警值', // value: '30%' // } // ] // }) // }, 3000);