简单的柱状图

送分小仙女□ 提交于 2020-02-27 00:57:12
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,
                }
            }

  

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!