12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import ChartCenterDigit1 from '../../../src/chart/center/ChartCenterDigit2/ChartCenterDigit2.js';
-
- let chart=new ChartCenterDigit1(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
-
- let option = {
- title:{},
- bg:{
- backgroundColor:"#000713"
- },
- grid:{
- left: "20%",
- right: "18%",
- top: "1%",
- bottom: "1%",
- },
- borderIcon:{
- scaleX: 1,
- scaleY: 0.65,
- },
- flyIcon:{
- scale: 0.08,
- // posScale: 0.1,
- },
- numdata:{
- alert: 'high',
- titFontsize: 28,
- titColor: '#d5d7db',
- numfontSize: 60,
- numfontWeight: 'normal',
- numColor: '#ffffff',
- // numshowColor: '#ff5400',
- numshowBlur: 20,
- iskeepDec: true,
- isthousand: true,
- unitText: '单位',
- unitSize: 35,
- unitColor: '#81a7c0',
- // lineDistance:20,
- max: 0.7,
- min: 0.3,
- colorList: ['#ff0000','#fff600','#00ebff']
- },
- series: [{
- name: '数据一',
- value: 0.75
- },
- {
- name: '数据二',
- value: 0.31
- },
- {
- name: '数据三',
- value: 0.15
- }
- ]
- };
-
- // setTimeout(()=>{
- // chart.setOption(option)
- // },3000)
|