import ChartBar from '../../../src/chart/bar/ChartBar45/ChartBar45';

let bar = new ChartBar(document.getElementsByClassName('c1')[0], {});
import Animation from "../../../src/chart/commonOptions/animation";


let option = {
    color: ['#61dfff'],
    bg:{
        backgroundColor:'#000713'
    },
    animation: Animation.option,
    grid: {
        left:'18%',
        top:'20%',
        right:'18%',
        bottom:'18%',
        containLabel: false
    },
    shape:{
        maxNum:150,
        borderColor: '#1d4970',
        itemHeight: 16,
        smallRectColor: '#9ac6fa',
        textBorderColor:'#4d6e95',
        textLeft:{
            color: '#d6deff',
            fontSize: 12
        },
        textRight:{
            color: '#ff0000',
            fontSize: 12
        }
    },
    series: [
        {
            data:[
                {name:"市司法局",value:90},
                {name:"市审视局",value:120},
                {name:"市人防办",value:80},
                {name:"市档案馆",value:48},
            ]
        }
    ]
};
// bar.setOption(data)
window.addEventListener('resize', () => {
    bar.resize();
});

// setTimeout(()=>{
// 	console.log(555);
// 	bar.setOption(option)
// },5000)