1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import ChartDigit1 from '../../../src/chart/digit/ChartDigit3/ChartDigit3.js';
- import Title from "../../../src/chart/commonOptions/title";
-
- let chart=new ChartDigit1(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
- setTimeout(()=>{
- chart.setOption({
- title: Title.option(''),
- bg: {
- backgroundColor: "#161729"
- },
- grid: {
- left: "5%",
- top: "35%",
- },
- // realPer: {
- // height: 12,
- //
- // top: 0,
- // left: 0
- // },
- // targetPer: {
- // height: 5,
- // bg: '#00eaff',
- // top: 10,
- // left: 0
- // },
- lineStyle:{
- maxWidth:'80%',
- realColor:'#dceeff',
- targetColor:'#00eaff'
- },
- caricon: {
- iconName: 'icon1',
- iconColor: '#dceeff',
- shadowColor: '#00deff',
- shadowBlur: 50,
- scale: '60%',
- // left: -5,
- // top: -3
- },
- textStyle:{
- realColor:'#dceeff',
- targetColor:'#00eaff',
- align:'right',//右对齐
- wordSize:14,
- numSize:53,
- fontWeight: 'normal',
- shadowColor: '#006cff',
- shadowBlur: 50,
- iskeepdec: false,
- isthousand:false,
- },
-
- series: [{
- name: '实际值',
- value: "hhh"
- },
- {
- name: '目标值',
- value: "hhh"
- }
- ]
- })
- },3000)
|