Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图例文字较长时文字被截断 #6302

Open
chenluli opened this issue Jun 20, 2024 · 0 comments
Open

图例文字较长时文字被截断 #6302

chenluli opened this issue Jun 20, 2024 · 0 comments

Comments

@chenluli
Copy link
Member

问题描述

如图所示,图例文字较长时,字会被截断,展示不全。
Screenshot 2024-06-20 at 11 43 58

任意图例名称较长时可复现,例如 'order_count', 'total_sales',可复现 spec 如下

chart.options({
  type: 'interval',
  data: [
    {name: 'total_sales', month: 'May', number: 10},
    {name: 'total_sales', month: 'Apr', number: 20},
    {name: 'order_count',  month: 'May', number: 20},
    {name: 'order_count',  month: 'Apr', number: 30}
  ],
  encode: {
    x: 'month',
    y: 'number',
    color: 'name'
  },
  transform: [{ type: 'stackY' }]
})

重现链接

No response

重现步骤

No response

预期行为

期望能完整展示

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant