Skip to content

[Bug] 柱状图配置sampling之后,不显示 #4571

Closed

Description

@skie1997

Version

2.0.22

Link to Minimal Reproduction

solar

Steps to Reproduce

const spec = {
  type: 'bar',
  data: [
    {
      id: 'barData',
      values: [
        { month: 'Monday', sales: 22 },
        { month: 'Tuesday', sales: 13 },
        { month: 'Wednesday', sales: 25 },
        { month: 'Thursday', sales: 29 },
        { month: 'Friday', sales: 38 }
      ]
    }
  ],
  xField: 'month',
  yField: 'sales',
  sampling: 'lttb',
  
};

Current Behavior

柱图不绘制

Expected Behavior

柱状图正常绘制

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Activity

  1. self-assigned this
    on Apr 28, 2026
  2. Issues-translate-bot commented on Apr 28, 2026

    @Issues-translate-bot

    Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


    Title: [Bug] After configuring sampling, the histogram is not displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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