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

.. #2302

Closed
Isaw-w opened this issue Apr 13, 2020 · 1 comment
Closed

.. #2302

Isaw-w opened this issue Apr 13, 2020 · 1 comment

Comments

@Isaw-w
Copy link

Isaw-w commented Apr 13, 2020

..

@simaQ
Copy link
Contributor

simaQ commented Apr 13, 2020

参考如下:

// 创建时,保存创建的 geometry 实例
const line = this.chart.line().position();

// 动态修改映射规则时,直接获取使用上述 line 实例调用相应方法即可
line.color('a');

// 最后调用 chart.render(true),因为现在 G2支持更新机制,如果 geomety 没有改变,则不需要清空重绘
chart.render(true);

@Isaw-w Isaw-w closed this as completed Apr 13, 2020
@Isaw-w Isaw-w changed the title 除了使用chart.clear()外,可以动态改变geom对应的坐标/颜色等属性么? .. May 7, 2023
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

2 participants