我在4.1.0的release介绍中看到这么一句话:“Add zooming and dragging interactions for tree diagram”,为什么我在实际测试中发现依然不支持缩放和拖拽,感谢!
tree图能够支持缩放和拖拽
option = {
tooltip: {
trigger: 'item',
triggerOn: 'mousemove'
},
series: [
{
type: 'tree',
data: [data],
top: '1%',
left: '7%',
bottom: '1%',
right: '20%',
symbolSize: 7,
label: {
normal: {
position: 'left',
verticalAlign: 'middle',
align: 'right',
fontSize: 9
}
},
leaves: {
label: {
normal: {
position: 'right',
verticalAlign: 'middle',
align: 'left'
}
}
},
expandAndCollapse: true,
animationDuration: 550,
animationDurationUpdate: 750
}
]
}
same question here. This feature is very important!
Hi. In short, this feature is included in the download from http://echarts.baidu.com/download.html but not for the npm 4.1.0 release.
This is our release mistake and sorry for the confusion. Due to the long release time since this is our first release after we joined Apache, there are some patches that added after the first release candidate. This makes some new commits are merged in our final release at http://echarts.baidu.com/download.html but npm release is already published. Sorry again and hopefully we will not make this problem again.
Hi. In short, this feature is included in the download from http://echarts.baidu.com/download.html but not for the npm 4.1.0 release.
This is our release mistake and sorry for the confusion. Due to the long release time since this is our first release after we joined Apache, there are some patches that added after the first release candidate. This makes some new commits are merged in our final release at http://echarts.baidu.com/download.html but npm release is already published. Sorry again and hopefully we will not make this problem again.
官网下周下来的也不支持缩放,下周github上从源码库,test目录里面有个tree-roam页面,也不支持缩放
4.2.0-rc.1 已经支持 tree 的缩放,见 http://echarts.baidu.com/changelog.html
虽然已经支持缩放了,但是在开启缩放后,缩放过以后,点击根节点的时候,整个树图会消失!
@lurenj 我也遇到了,这个Bug
@pissang 这个缩放点击根节点消失问题有什么办法可以解决吗?
请问tree现在支持单个节点的拖拽了吗?
Most helpful comment
Hi. In short, this feature is included in the download from http://echarts.baidu.com/download.html but not for the npm 4.1.0 release.
This is our release mistake and sorry for the confusion. Due to the long release time since this is our first release after we joined Apache, there are some patches that added after the first release candidate. This makes some new commits are merged in our final release at http://echarts.baidu.com/download.html but npm release is already published. Sorry again and hopefully we will not make this problem again.