1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import ChartDigit21 from '../../../src/chart/digit/ChartDigit21/ChartDigit21.js';
-
- let chart=new ChartDigit21(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
- const defaultOption = {
- bg: {
- backgroundColor: "#000"
- },
- digit21: {
- center: {
- x: "50%",
- y: "50%"
- },
- width: "40%",
- ellipseLineColor: '#15c8d8',
- glowLineColor: '#66ffff',
- rectColor: '#83f7ff',
- ploygonColor: '#01eaff',
- sportLineColor: '#1f1f1f',
-
- textColor: '#fff',
- textShdowColor: 'blue',
- fontSize: 40
- },
- shape: {
- icon: {
- size: 80,
- offsetX: 0,
- offsetY: 0,
- rotation: 0,
- iconColor: '#fff',
- iconShadowColor: '#03c5b1'
- },
- iconType: {
- type: 'icon2',
- path: ''
- // path: ''
- }
- },
- series: [
- {
- name: '总仓数',
- value: 20
- }
- ]
- }
-
- // setTimeout(()=>{
- // chart.setOption(defaultOption);
- // },2000)
|