Echarts3中treemap矩形树图更新值后导航条显示有误(自动添加一级) #4209

Closed
FlowerBirds opened this Issue Oct 10, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@FlowerBirds

问题简述 (One-line summary)

1.当初始化完成treemap后,再次更新option值时,导航条就会多显示一级内容;
2.当修改样例代码中的series的data中‘分类c’的value设置为30,60,70,80,90,100时,初始化后导航条显示有误(40,50正常);
样例代码

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.2.3
  • 浏览器类型和版本 (Browser version):Chrome45,ff45,IE11
  • 操作系统类型和版本 (OS Version):window7 x64

重现步骤 (Steps to reproduce)

1.可修改代码或是点击页面按钮可复现问题

期望结果 (Expected behaviour)

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {
    title: {
        text: 'ECharts Treemap'
    },
    tooltip: {},
    series: [{
        name: '销量',
        type: 'treemap',
        leafDepth: 1,
        data: [{name: '分类a', value: 10}, 
            {name: '分类b', value: 18, children: [
                {name: '层次a', value: 10},
                {name: '层次b', value: 8},
            ]},
            {name: '分类c', value: 20},
            {name: '分类d', value: 11},]
    }]
}

其他信息 (Other comments)

样例代码

@FlowerBirds

This comment has been minimized.

Show comment
Hide comment
@FlowerBirds

FlowerBirds Oct 10, 2016

在线演示地址
点击左下角“设置”按钮,即可复现效果

FlowerBirds commented Oct 10, 2016

在线演示地址
点击左下角“设置”按钮,即可复现效果

@100pah 100pah added the enhancement label Oct 16, 2016

@100pah 100pah closed this in 262f45e Oct 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment