import Title from "../../../src/chart/commonOptions/title"; import ChartDigit22 from '../../../src/chart/digit/ChartDigit22/ChartDigit22.js'; let chart=new ChartDigit22(document.getElementsByClassName('c1')[0],{}); window.addEventListener('resize',()=>{ chart.resize(); }); setTimeout(()=>{ chart.setOption( { bg: { backgroundColor: "#000000" }, shape: { textStyle:{ textSize:20 }, Gap:{ left:'10%', right:'10%', top:'10%', bottom:'10%' } }, color:['#778899','#666666'], series: [{ name: '实际值', value: 0.4 }, { name: '目标值', value: 0.6 } ] } ); },3000)