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,只有初始数据显示为堆叠,滑动后出现的,总高度不是 各数之和,而是最高的数 #7732

Closed
HigoYuyue opened this issue Feb 6, 2018 · 6 comments

Comments

@HigoYuyue
Copy link

One-line summary [问题简述]

堆叠图设置dataZoom,只有初始数据显示为堆叠,滑动后出现的,总高度不是 各数之和,而是最高的数

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.0.2
  • Browser version [浏览器类型和版本]:chrome最新版
  • OS Version [操作系统类型和版本]:iOS

Expected behaviour [期望结果]

期望数据一直堆叠

ECharts option [ECharts配置项]

option = {
  title: {
        text: '折线图堆叠'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
    },
    dataZoom: [{
                        type: 'slider',
                        xAxisIndex: 0,
                    
                        start: 0,
                        end: 100,
                    
                        filterMode: 'filter',
                    },
                        {
                            type: 'inside',
                            start: 0,
                            end: 100,
                            filterMode: 'filter',
                          
                        },
                    ],
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['周一','周二','周三','周四','周五','周六','周日']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name:'邮件营销',
            type:'line',
            stack: '总量',
            data:[120, 132, 101, 134, 90, 230, 210]
        },
        {
            name:'联盟广告',
            type:'line',
            stack: '总量',
            data:[220, 182, 191, 234, 290, 330, 310]
        },
        {
            name:'视频广告',
            type:'line',
            stack: '总量',
            data:[150, 232, 201, 154, 190, 330, 410]
        },
        {
            name:'直接访问',
            type:'line',
            stack: '总量',
            data:[320, 332, 301, 334, 390, 330, 320]
        },
        {
            name:'搜索引擎',
            type:'line',
            stack: '总量',
            data:[820, 932, 901, 934, 1290, 1330, 1320]
        }
    ]
}

Other comments [其他信息]

2018-02-06 17 41 06

2018-02-06 17 41 49

@daxiangxiaoyi
Copy link

遇到同样的问题,查了一下提交的issues,有不少人遇到此问题,希望重视一下!

@daxiangxiaoyi
Copy link

@xvaara

@rezass
Copy link

rezass commented Feb 24, 2018

I have the same problem.
Does this problem also exist in 3.x versions?

@HigoYuyue
Copy link
Author

I didn't try,sorry.@rezass

@algoshipda
Copy link
Contributor

I have the same problem with the bar chart.

1 similar comment
@sunshine-dz
Copy link

I have the same problem with the bar chart.

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

No branches or pull requests

6 participants