1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import ChartDigit20 from '../../../src/chart/digit/ChartDigit20/ChartDigit20.js';
- import Title from "../../../src/chart/commonOptions/title";
-
- let chart=new ChartDigit20(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
- setTimeout(()=>{
- chart.setOption(
- {
- bg: {
- backgroundColor: "#000000"
- },
- shape: {
- textStyle:{
- textSize:20,
- // fontFamily:"DIN MEDIUM",
- fontFamily:"微软雅黑",
- TLeft: 10,
- TTop: 0,
- BLeft: 0,
- BTop: 20
- },
- Gap:{
- left:'10%',
- }
- },
- color:['#ff0072','#00aeff'],
- series: [{
- name: '实际值',
- value: 0.755
- },
- {
- name: '目标值',
- value: 0.855
- }
- ]
- }
- );
- },3000)
-
|