echarts [Bug] gauge with dataset: unable to use encode configuration

eanckbw9  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(101)

Version

5.3.3

No response

Steps to Reproduce

option = {
  tooltip: {
    formatter: '{a} <br/>{b} : {c}%'
  },
  dataset: {
    source: [
      {
        month: '7月',
        evaporation: 135.6,
        precipitation: 175.6
      }
    ]
  },
  series: [
    {
      name: 'Pressure',
      type: 'gauge',
      detail: {
        formatter: '{value}'
      },
      encode: {
        itemName: 'month',
        value: 'evaporation'
      }
    }
  ]
};

Current Behavior

itemName及value映射错误

Expected Behavior

encode配置应该可以正常映射

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

相关问题