Skip to content

[Bug] 柱状图在横轴为时间时,无法按照时间正常堆叠 #16700

@Sorakado-Aoo

Description

@Sorakado-Aoo

Version

5.3.1

Link to Minimal Reproduction

No response

Steps to Reproduce

在5.2.2中正常,5.3.0之后异常
示例option

option = {
  title: { left: 'center' },
  color: [
    '#F73809',
    '#0909F7',
    '#09F7F7'
  ],
  toolbox: { right: 30, feature: { saveAsImage: {} } },
  tooltip: { trigger: 'axis' },
  legend: {
    show: true,
    padding: [10, 50],
    data: [
      'bar1',
      'bar2',
      'bar3'
    ]
  },
  grid: { left: '6%', right: '6%', bottom: '12%', containLabel: true, top: 40 },
  xAxis: {
    type: 'time',
    minInterval: 86400000,
    splitLine: { show: false },
    axisLabel: { rotate: 0 }
  },
  yAxis: {
    scale: true,
    type: 'value',
    axisLabel: { formatter: '{value} kWh' },
    min: 0,
    max: null
  },
  series: [
    {
      name: 'bar1',
      type: 'bar',
      stack: 'one',
      data: [
        ['2020/03/09', 2.498],
        ['2020/03/10', 0.501]
      ]
    },
    {
      name: 'bar2',
      type: 'bar',
      stack: 'one',
      data: [['2020/03/10', 0.827]]
    },
    {
      name: 'bar3',
      type: 'bar',
      stack: 'one',
      data: [['2020/03/10', 0.814]]
    }
  ]
};

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstaleInactive 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