12345678910111213141516171819202122232425262728293031323334353637 |
- import ChartDigit from '../../../src/chart/digit/ChartDigit26/ChartDigit26.js';
-
- let chart=new ChartDigit(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- chart.resize();
- });
-
- setTimeout(()=>{
- console.log(555)
- chart.setOption(option);
- },3000)
-
- let option = {
- color: ['#01FF91'],
- bg: {
- backgroundColor: "#000"
- },
- tool:{
- leftTopFont: 16,
- topColor:'#ffffff',
- leftBottomFont: 16,
- bottomColor: '#ffffff',
- rightFont: 30,
- rightColor: '#ffffff',
- shadowColor: '#55FFFF',
- },
- shape:{
- x: '30%',
- y: '0%',
- bgP: true
- },
- series: [{
- name:"手机整体销量",
- value:31416397,
- time:'2015.11.01 - 2015.11.11'
- }]
- };
|