Skip to content

[Bug] 时间轴-series-bar. label显示问题 #16666

@ITchenjian

Description

@ITchenjian

Version

5.3.1

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
  yAxis: {
    type: 'category',
    data: ['Mon', 'Tue']
  },
  xAxis: {
    type: 'time',
    minInterval: 3600 * 24 * 1000,
    axisLabel : {
        color: '#3D3F4B',
        interval: 0,
        showMaxLabel: true,
        formatter: (value, index) => {
            var date = new Date(value);
            var texts = [(date.getMonth() + 1), date.getDate()];
            return texts.join('-');
        }
    },
  },
  series: [
    {
      data: ['2021/12/15', '2021/12/16'],
      type: 'bar',
      label: {
          show: true,
          position: "right",
          formatter: function(params) {
              return '测试' + params.name;
          },
          color: '#000',
      },
    }
  ]
};

Current Behavior

series-bar. label不显示(奇怪的是,将X轴于Y轴互换就可显示)
如图
image
X轴于Y轴互换后
image

Expected Behavior

series-bar. label显示问题

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions