123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import ChartDigit24 from '../../../src/chart/digit/ChartDigit24/ChartDigit24.js';
-
- let chart=new ChartDigit24(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
- setTimeout(()=>{
- // chart.setOption(opt);
- },3000)
-
- let opt = {
- color: ['#ffffff','#00CC66', '#999999', '#ffffff'],
- bg:{
- backgroundColor:'#000713'
- },
- shape:{
- position:{
- left: '18%',
- top: '18%'
- },
- text:{
- fontSize: 24,
- color: '#ffffff'
- },
- arr:{
- lineNum:3
- },
- icon:{
- width: 20,
- pos: false,
- borderRadius: '50%'
- },
- space:{
- x: 20,
- y: 10
- }
- },
- series: [
- {
- name: '状态名',
- type: 'bar',
- data: ['adasdasdasd','正常','故障','离线']
- }
- ]
- };
-
-
|