Simple bar chart

option = {
                color: ['#57AEFC'],
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: {
                    data: ["123",'sad',"234"],
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#6E6E6E',
                        },
                        fontSize: '0.2rem cursive',//字体大小
                    },
                },
                yAxis: {
                    gridIndex: 0,
                    min: 0,
                    //max:30,
                    //interval:10,
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#6E6E6E',
                        },
                        fontSize: '0.2rem cursive',//字体大小
                    },
                    axisLine: {
                        show: false
                    },
                },
                series: [{
                    type: 'bar',
                    data: [12,3,4],
                    barWidth: '60%',
                }],
                legend: {
                    show: true,
                }
            }

  

Guess you like

Origin www.cnblogs.com/kkvt/p/12370096.html