中欧班列

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            var  getsyzl=['2011','2012','2013','2014','2015','2016','2017','2018','2019'];
var  getwkrs=[17,42,80,308,815,1702,3637,6300,8225,12400];
var  getlkrs=[686,703,788,882,779,785];
option= {
    backgroundColor:'#000',
    grid: {
        top: '20%',
        left: '7%',
		right: '2%',
        bottom: '3%',
        containLabel: true
    },
	legend: {
		data: ['中欧班列'],
        right: "3%",
		top:"4%",
        textStyle: {
            color: "#A1D5FF",
			fontSize: 12
        }, 
		itemWidth: 12,  // 设置宽度
		itemHeight:16, // 设置高度
		itemGap: 12 // 设置间距
    },
    xAxis: [{
        data: getsyzl,
        axisLabel: {
            margin: 10,
            color: '#A1D5FF',
            textStyle: {
                fontSize: 12
            },
        },
        axisLine: {
            lineStyle: {
                color: '#102E74',
            }
        },
        axisTick: {
            show: false
        },
    }],
    yAxis: [{
	    type:'value',
	    axisLabel: {
            color: '#A1D5FF',
            textStyle: {
                fontSize: 12
            },
        },
        axisLine: {
            show:false,
        },
        axisTick: {
            show: false
        },
        splitLine: {
            lineStyle: {
                color: '#102E74',
            }
        }
    }],
    series: [
	{
		name: "中欧班列",		
        type: 'bar',
        data: getwkrs,
        barWidth: '12px',
        itemStyle: {
            normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(85,244,255,0.9)' // 0% 处的颜色
                }, {
                    offset: 1,
                    color: 'transparent' // 100% 处的颜色
                }], false),
                barBorderRadius: [30, 30, 0, 0],
            }
        },
     markLine: {
            symbol: 'none',
            label: {
                show: true,
                position: 'end',
                formatter: '{c}',
                fontSize: 14,
                fontWeight: 'bold'
            },
            lineStyle: {
                type: 'dotted'
            },

        },
        markPoint: {
                animationEasing: 'elasticOut',
                symbolOffset:[0, "-20%"],
                data: [{
                    type: 'min',
                    itemStyle:{
                        color:'#ff6000'
                    }
                }, {
                    type: 'max',
                    itemStyle:{
                        color:'#ff6000'
                    }
                }]
            }
    }
    ]
}