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

【折线图堆叠BUG】 #8235

Closed
MerlChen opened this issue Apr 27, 2018 · 3 comments
Closed

【折线图堆叠BUG】 #8235

MerlChen opened this issue Apr 27, 2018 · 3 comments
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@MerlChen
Copy link

One-line summary [问题简述]

1、某一折线图的某个点数值为0时,它的点不会掉到最下面,而是取下一条线的对应的点


image

Version & Environment [版本及环境]

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

Expected behaviour [期望结果]

正常显示,为0时,掉到最底部

ECharts option [ECharts配置项]

option = {
    title: {
        text: '折线图堆叠'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
    },
    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:[12, 132, 101, 134, 90, 230, 210]
        },
        {
            name:'联盟广告',
            type:'line',
            stack: '总量',
            data:[220, 182, 191, 234, 290, 330, 310]
        },
        {
            name:'视频广告',
            type:'line',
            stack: '总量',
            data:[1, 232, 201, 154, 190, 330, 410]
        },
        {
            name:'直接访问',
            type:'line',
            stack: '总量',
            data:[320, 332, 301, 334, 390, 330, 320]
        },
        {
            name:'搜索引擎',
            type:'line',
            stack: '总量',
            data:[0, 0, 0, 0, 1290, 1330, 1320]
        }
    ]
};

Other comments [其他信息]

image

联系方式:QQ 379181273

@100pah
Copy link
Member

100pah commented Apr 28, 2018

因为被堆叠了,所以取下一条线的对应的点

@MerlChen
Copy link
Author

实现的逻辑是不是有点问题呢?
如果说一条线的值有若干点为0,结果跑到相邻的线上的点去了,这样觉得还是不好的吧?
丢失了数据的真实性

@stale
Copy link

stale bot commented May 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Inactive for a long time. Will be closed in 7 days. label May 14, 2020
@stale stale bot closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants