-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Static Legend #6501
Comments
Another thing I want to ask is can we assign colors to Legends? That is, let the legend color scheme be created according to the color I assign to the node. Like nodeStyle {color:"red"}. |
The first issue you mentioned will be fixed in the near future. Generally speaking, the legend represents a category of node, so you cannot change it by specifying the color of a single piece of data. |
@Aarebecca It's nice to know that the first problem will be solved, thank you in advance. The feature I wanted was in graphin. I could assign color according to nodeType:x nodeType:y nodeType. Actually, I'm looking for a feature similar to this. |
@RackweLLizm Maybe you can customize a legend plugin yourself |
legend1.ts.zip |
Describe the bug / 问题描述
Legend moves with mouse movements. This disrupts visual clarity on a crowded canvas. What I want is for Legend to be static at the top right and not move. Even if you don't plan on providing this feature, can you give me an idea on how it can be done by intervening in the source code?
The changes I made to Legend.js didn't work.
return {
display: 'flex',
flexDirection,
justifyContent,
alignItems,
position: 'absolute',
top: 0,
right: 0,
};
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response
The text was updated successfully, but these errors were encountered: