图例不见了 echarts 柱状配置项内容和展示

我把这个配置放到我的代码里面 图例丢了 我不知道是那个地方的问题 大佬们 帮我瞅瞅呗

配置项如下
      option = {
    legend: {
        orient: 'vertical',
        show: true,
        z: 1000,
        data: [{
                name: '在矫人数',

            },
            {
                name: '解矫人数',

            },
            {
                name: '入矫人数',

            }
        ]
    },
    title: {
        text: '矫正情况表'
    },
    tooltip: {
        trigger: 'axis'
    },
    toolbox: {
        show: true,
        feature: {
            dataView: {
                show: true,
                readOnly: false
            },
            magicType: {
                show: true,
                type: ['line', 'bar']
            },
            restore: {
                show: true
            },
            saveAsImage: {
                show: true
            }
        }
    },
    calculable: true,
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [{
        type: 'category',
        data: ["2017-04", "2017-05", "2017-06", "2017-07", "2017-08", "2017-09", "2017-10", "2017-11", "2017-12", "2018-01", "2018-02", "2018-03"],
        axisTick: {
            alignWithLabel: true
        },
        axisLabel: {
            interval: 0,
            rotate: -30
        }
    }],
    yAxis: [{
        type: 'value'
    }],
    series: [{
            // 根据名字对应到相应的系列
            name: "在矫人数",
            type: 'bar',
            data: [0, 0, 0, 0, 0, 0, 0, 193, 241, 286, 306, 309]
        },
        {
            // 根据名字对应到相应的系列
            name: "解矫人数",
            type: 'bar',
            data: [0, 0, 0, 0, 0, 0, 0, 193, 241, 286, 306, 309]
        },
        {
            // 根据名字对应到相应的系列
            name: "入矫人数",
            type: 'bar',
            data: [0, 0, 0, 0, 0, 0, 0, 193, 241, 286, 306, 309]
        }
    ]
};
    
截图如下