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

support limitInShape label transform #4254

Closed
visiky opened this issue Nov 8, 2022 · 3 comments
Closed

support limitInShape label transform #4254

visiky opened this issue Nov 8, 2022 · 3 comments
Assignees
Labels

Comments

@visiky
Copy link
Member

visiky commented Nov 8, 2022

使用方式

labels: [{
    text: 'xxx',
    transform: [{ type: 'limitInShape' }]
}]

预览效果

image

@visiky visiky added the V5 label Nov 29, 2022
@visiky
Copy link
Member Author

visiky commented Dec 1, 2022

另外,还可以考虑 adjustColor 根据 label 和其背景色的颜色对比度情况,进行自动调整

@hustcc hustcc self-assigned this Dec 1, 2022
@hustcc
Copy link
Member

hustcc commented Dec 6, 2022

@visiky limitInPlot 就是期望如果图形放不下就省略吗?

@hustcc
Copy link
Member

hustcc commented Jan 4, 2023

已经有了,见文档:

@hustcc hustcc closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants