echarts icon indicating copy to clipboard operation
echarts copied to clipboard

能不能定位某个节点到中心位置?

Open qingyun1029 opened this issue 1 year ago • 3 comments

What problem does this feature solve?

Due to the large amount of data in the diagram, the system is able to locate a node through search and locate it in the middle of the diagram.

Thanks !

What does the proposed API look like?

echarts v4.3,系统通过节点id就能够把当前节点定位到中心位置。

qingyun1029 avatar Jun 29 '24 09:06 qingyun1029

@qingyun1029 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

Is it possible to locate a node to the center?

echarts-bot[bot] avatar Jun 29 '24 09:06 echarts-bot[bot]

如果是 treemap 可以用如下 action 实现:

myChart.dispatchAction({
    type: 'treemapZoomToNode',
    seriesId: 系列 ID,
    targetNodeId: 节点ID
})

参见 #18961。

plainheart avatar Jul 01 '24 04:07 plainheart

action.treemap. treemapZoomToNode
定位之后,如果设置了 series 的 scaleLimit min,就无法缩小了

如果是treemap可以用如下action实现:

myChart.dispatchAction({
    type: 'treemapZoomToNode',
    seriesId: 系列 ID,
    targetNodeId: 节点ID
})

参见#18961。

icocoding avatar Aug 15 '24 15:08 icocoding