-
Notifications
You must be signed in to change notification settings - Fork 199
axis label layout #203
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
Merged
Merged
axis label layout #203
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33bc82b
to
7397224
Compare
zamhown
approved these changes
Jul 19, 2023
5714e6b
to
0f571af
Compare
…hether to enable the axis sampling logic, which is enabled by default
31c0e70
to
427ffdb
Compare
427ffdb
to
00b5eda
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…enable the axis sampling logic, which is enabled by default
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
关联 vrender-components 的修改: https://github.com/VisActor/VRender/pull/167,需要 vrender-components 发版
🐞 Bugserver case id
💡 Background and solution
1.
dataFilter
for tick and label2. overlap config for cartesian axis label
sampling
属性用于进行轴采样的开关,默认开启该配置等同于 3.x 的
labelMonospace
,轴采样开启后会进行防重叠的处理,所以即使配置了 label.autoRotate 这些也不会触发,所以如果想要进行自动旋转,需要将sampling
属性关闭直角坐标系下的轴标签防重叠配置,
axis.label
新增如下配置,整体的逻辑如下:layoutFunc
则不进行内置的防重叠逻辑,autoRotate, autoLimit, autoHide 默认为 false,如果都配置,内部会按照 autoRotate -> autoLimit -> autoHide 的方式进行布局,目前 autoHide 未基于旋转后的包围盒进行计算,这个等后续 vrender 支持后修改。autoLimit
则会进行文本的自动省略📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough