antvis/G2
The issue has been closed
[Break Change] chart.node -> chart.getNode, chart.context -> chart.getContext #4685
pearmini posted onGitHub
API 做以下调整:
- chart.node() -> chart.getNode()
- chart.context() -> chart.getContext()
在 G2 的 Chart API 非创建容器的约定如下:
- chart.getXXX: getter
- chart.xxx: getter and setter
基于此,所以需要调整。