123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import ChartBar from '../../../src/chart/bar/ChartBar6/ChartBar6.js';
- import Title from "../../../src/chart/commonOptions/title";
- let bar =new ChartBar(document.getElementsByClassName('c1')[0],{});
- window.addEventListener('resize',()=>{
- bar.resize();
- });
-
- // setTimeout(function(){
- // bar.setOption({
- // color: ['#dceeff', '#00eaff', '#7db4ff', '006cff', '#addbe6', '#4169e1', '#8d97bf', '#0025b0'],
- // bg: {
- // backgroundColor: "#112448"
- // },
- // title:Title.option(''),
- // grid: {
- // left: '20%',
- // right: '20%',
- // top: '20%',
- // bottom: '20%'
- // },
- // legend: {
- // left: "18%",
- // top: '6%',
- // itemHeight: 12,
- // itemWidth: 12,
- // itemAngelR: 20,
- // textStyle: {
- // fontSize: 16,
- // color: '#50a7bd'
- // }
- // },
- // tooltip:{
- // offsetX:25,
- // offsetY:5,
- // textColor:'#ffba00',
- // bgStyle:{
- // backgroundColor:'#1b3977',
- // borderColor:'#006e7f'
- // },
- // },
- // xAxis: {
- // type: 'category',
- // axisLabel: {
- // textStyle: {
- // color: '#4e75a1'
- // }
- // },
- // axisTick: {
- // show: true,
- // length: 2,
- // lineStyle: {
- // color: '#88c5ff',
- // width: 2
- // }
- // },
- // data: ['1月', '2月', '3月', '4月']
- // },
- // yAxis: {
- // type: 'value',
- // axisTick: {
- // show: true,
- // length: 2,
- // lineStyle: {
- // color: '#88c5ff',
- // width: 2
- // }
- // },
- // axisLabel: {
- // textStyle: {
- // color: '#4e75a1'
- // }
- // },
- // splitLine:{
- // lineStyle:{
- // color:'#2b3f58',
- // width:1
- // }
- // }
- // },
- // series: [ {
- // name: '目标值',
- // data: [60, 70, 75, 60],
- // splitNum:26,
- // label:{
- // show:false,
- // color:'#fff',
- // fontSize:12,
- // fontWeight:'normal'
- // }
- // }]
- // })
- // },3000)
-
|