Skip to content

[Bug] stack barchart is wrong when barGapInGroup is not null #3672

@xile611

Description

@xile611

Version

1.13.3

Link to Minimal Reproduction

no

Steps to Reproduce

{
      type: "bar",
      data: [
        {
          id: "barData",
          values: [
            {
              publish_month: "202410",
              show_ucnt_result: 267167271,
              type: "未知",
            },
            {
              publish_month: "202410",
              show_ucnt_result: 1050181,
              type: "平台高频老客",
            },
            {
              publish_month: "202410",
              show_ucnt_result: 148579156,
              type: "平台新客",
            },
            {
              publish_month: "202410",
              show_ucnt_result: 37527589,
              type: "平台低频老客",
            },
            {
              publish_month: "202410",
              show_ucnt_result: 146436969,
              type: "平台流失",
            },
            {
              publish_month: "202411",
              show_ucnt_result: 143805687,
              type: "平台流失",
            },
            {
              publish_month: "202411",
              show_ucnt_result: 44703963,
              type: "平台低频老客",
            },
            {
              publish_month: "202411",
              show_ucnt_result: 1538904,
              type: "平台高频老客",
            },
            {
              publish_month: "202411",
              show_ucnt_result: 156469177,
              type: "平台新客",
            },
            {
              publish_month: "202411",
              show_ucnt_result: 269379799,
              type: "未知",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 115606542,
              type: "平台流失",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 231984558,
              type: "未知",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 1245055,
              type: "平台高频老客",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 40347784,
              type: "平台低频老客",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 5093523,
              type: "平台中频老客",
            },
            {
              publish_month: "202412",
              show_ucnt_result: 112105124,
              type: "平台新客",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 171380706,
              type: "未知",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 26210404,
              type: "平台低频老客",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 797491,
              type: "平台高频老客",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 70186273,
              type: "平台新客",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 3300649,
              type: "平台中频老客",
            },
            {
              publish_month: "20251",
              show_ucnt_result: 77658533,
              type: "平台流失",
            },
          ],
        },
      ],
      xField: ["publish_month"],
      yField: ["show_ucnt_result"],
      seriesField: "type",
      barMinHeight: 5,
      barGapInGroup: 4,
      stack: true,
    }

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions