Skip to content

[Bug] multiple smooth stacked areas overlap #16893

@kayoch1n

Description

@kayoch1n

Version

5.2.1

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
  tooltip: {
    trigger: 'axis',
  },
  "legend": {
  },
  "dataset": {
    "source": [
      [
        "product",
        "a",
        "b",
      ],
      ["2020-10", 5.28, 0],
      ["2020-11", 5.72, 0],
      ["2020-12", 6.95, 0],
      ["2021-01", 8.7, 0],
      ["2021-02", 11.64, 0],
      ["2021-03", 11.93, 10.32],
      ["2021-04", 12.04, 6.79],
      ["2021-05", 10.47, 5.67],
    ]
  },
  "xAxis": { "type": "category",},
  "yAxis": {},
  "series": [
    {
      "type": "line",
      "smooth": true,
      "areaStyle": {},
      "stack": "total"
    },
    {
      "type": "line",
      "smooth": true,
      "areaStyle": {},
      "stack": "total"
    },
  ],
}

Current Behavior

两条曲线的面积出现重叠。绿色曲线在圈起来的地方的值都是0,按理说不应该重叠

image

Expected Behavior

两条曲线的面积

Environment

- OS: mac osx
- Browser: chrome
- Framework: vue

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions