柱状图柱体标签显示问题echarts 柱状配置项内容和展示

本人想实现在柱体上显示不同标号,比如温度第一个是温度1,第二个是温度3,第三个温度2,湿度等同理,但是label的formatter不能接收数组,求解怎么办

配置项如下
      var x = [1,3,2,4,6,5];

option = {
    title: {
        text: 'Awesome Chart'
    },
    xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri']
    },
    legend: {
        formatter: '{name}',
        data:['温度','湿度','超声']
    },
    yAxis: {},
    series: [{
        name: '温度',
        type: 'bar',
        label: {
            show: true,
            formatter: function(e){
                return '温度'+x[e.dataIndex];
            }
        },
        data: [5, 20, 36, 10, 10, 20]
    },{
        name: '湿度',
        type: 'bar',
        data: [5, 20, 36, 10, 10, 20]
    },{
        name: '超声',
        type: 'bar',
        data: [5, 20, 36]
    }]
};
    
截图如下