Skip to content

[Bug]: React中给父容器设置动态宽度时,Line组件无法正常适应外部宽度变化 #2864

Open
@IvesWei

Description

@IvesWei

Describe the bug / 问题描述

当给父容器设置动态宽度如: style{{ width: data.length * 100 + '%' }} 或 style{{ width: data.length * 100 + 'px' }}, 图表无法正常自适应父容器宽度

Reproduction link / 复现链接

No response

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

  1. 给父容器设置动态宽度
  2. 图表Line不设置固定宽度
  3. 在数据变化同步影响父容器变化后,图表未能自适应父容器宽度变化

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

    waiting for maintainerTriage or intervention needed from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions