Incubator-echarts: 4.1.0版本是否已经支持tree图的缩放和拖拽

Created on 6 Aug 2018  ·  8Comments  ·  Source: apache/incubator-echarts

One-line summary [问题简述]

我在4.1.0的release介绍中看到这么一句话:“Add zooming and dragging interactions for tree diagram”,为什么我在实际测试中发现依然不支持缩放和拖拽,感谢!

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.1.0
  • Browser version [浏览器类型和版本]:chrome 67.0.3396.99
  • OS Version [操作系统类型和版本]:Windows7

Expected behaviour [期望结果]

tree图能够支持缩放和拖拽

ECharts option [ECharts配置项]


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
            }
        ]
}

Other comments [其他信息]


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.

All 8 comments

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现在支持单个节点的拖拽了吗?

Was this page helpful?
0 / 5 - 0 ratings