Skip to content

[Bug]: Funnel labels hidden when dynamically setting compareField #3117

@seanparmelee

Description

@seanparmelee

Describe the bug / 问题描述

I'm using the Funnel visualization and wanting to toggle comparison mode (i.e. conditionally set compareField based off a state variable). This works for the most part, but for some reason the inside labels appear to get drawn over. Here's an example using a small reproduction based off the example:

Image

One (not so great) workaround is to set a key on the Funnel component to force it to unmount/remount when toggling the comparison.

Reproduction link / 复现链接

https://stackblitz.com/edit/react-9zvlgt6u?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

  1. Open the provided StackBlitz link.
  2. Check the "Compare" checkbox.
  3. Observe the inside labels on the left side are briefly shown and then hidden.

Version / 版本

🆕 2.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingplots统计图表G2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions