1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import Title from "../../../src/chart/commonOptions/title";
- import ChartDigit from '../../../src/chart/digit/ChartDigit25/ChartDigit25.js';
- // import Chart from './SeriesBarTop5Num';
-
- let chart=new ChartDigit(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
-
- setTimeout(()=>{
- chart.setOption(opt);
- },3000)
-
- let opt = {
- title: Title.option(''),
- bg: {
- backgroundColor: "#000000"
- },
- color:['#05D1FF','#05AAFF'],
- shape: {
- textStyle:{
- centerTextFont: 20,
- centerColor: '#ffffff',
- centerShadow: '#05CBF2',
- bottomTextFont: 14,
- bottomColor: '#B0F5FF',
- bottomShadow: '#05CBF2',
- lineWidth: 2,
- },
- Gap:{
- left:'20%',
- right:'10%',
- top:'32.5%',
- bottom:'37.5%'
- }
- },
- series: [{
- name: '关基单位',
- value: 160
- }
- ]
- };
-
|