We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
graph.edge().color(dim, fun) 边颜色映射 graph.edge().size(dim, fun) 边大小映射 graph.edge().shape(dim, fun) 边形状映射 graph.edge().label(dim, fun) 边文本映射 graph.edge().style(dim, fun) 样式映射 graph.edge().tooltip(dim, fun) 提示信息映射
这一系列方法 参数是否应该直接是(edge) => {} ?node()同理,为什么不直接把对象暴露出来呢?
The text was updated successfully, but these errors were encountered:
这个是历史原因,g6 最初延用了 g2 的映射方式。g2 里传 dim 是为了能做自动的legend(图例)等。现在看来 g6 里可能不会做自动的导引元素。所以 dim 变得没有必要。后面会加上 (edge) => {} 这样的方式,预计 1.1 版本上、七月初实现。
Sorry, something went wrong.
已经可以使用直接传入回调函数的使用方式
Merge pull request antvis#19 from sirensolutions/fork
3938e25
Utility scripts
No branches or pull requests
graph.edge().color(dim, fun) 边颜色映射
graph.edge().size(dim, fun) 边大小映射
graph.edge().shape(dim, fun) 边形状映射
graph.edge().label(dim, fun) 边文本映射
graph.edge().style(dim, fun) 样式映射
graph.edge().tooltip(dim, fun) 提示信息映射
这一系列方法 参数是否应该直接是(edge) => {} ?node()同理,为什么不直接把对象暴露出来呢?
The text was updated successfully, but these errors were encountered: