Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataZoom导致connectNulls默认值修改 #7955

Closed
cbtpro opened this issue Mar 16, 2018 · 0 comments
Closed

dataZoom导致connectNulls默认值修改 #7955

cbtpro opened this issue Mar 16, 2018 · 0 comments

Comments

@cbtpro
Copy link

cbtpro commented Mar 16, 2018

One-line summary [问题简述]

当给options设置了dataZoom后,connectNulls默认值false被修改成了true,数据中的null两端的点被连接起来了

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.0.2
  • Browser version [浏览器类型和版本]:Chrome 版本 64.0.3282.186(正式版本) (64 位)
  • OS Version [操作系统类型和版本]:macOS High Sierra 版本10.13.3

Expected behaviour [期望结果]

设置了dataZoom后,null值两端的点依然不连接在一起

ECharts option [ECharts配置项]

option = {
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['Step Start', 'Step Middle', 'Step End']
    },
    toolbox: {
        feature: {
            saveAsImage: {},
            //dataZoom: { } //当增加了这一句后,data中的null就被连起来了
        }
    },
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name:'Step Start',
            type:'line',
            step: 'start',
            data:[120, 132, null, 134, 90, 230, 210]
        },
        {
            name:'Step Middle',
            type:'line',
            step: 'middle',
            data:[220, 282, 201, 234, null, 430, 410]
        },
        {
            name:'Step End',
            type:'line',
            step: 'end',
            data:[450, 432, 401, 454, 590, null, 510]
        }
    ]
}

Other comments [其他信息]

jsbin: http://jsbin.com/telimokula/edit?html,js,output

@100pah 100pah closed this as completed in d4d848f Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant