Skip to content

onZero 在多坐标轴时,只有第一个有效 #3081

@276509842

Description

@276509842

问题简述 (One-line summary)

onZero 在多坐标轴时,只有第一个有效

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.1.7
  • 浏览器类型和版本 (Browser version):
  • 操作系统类型和版本 (OS Version):

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)

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

ECharts配置项 (ECharts option)

option = {

    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['周一','周二','周三','周四','周五','周六','周日']
        }
    ],
    yAxis : [
        {
            type : 'value', onZero : true
        },
        {
            type : 'value', onZero : true
        }
    ],
    series : [
        {
            name:'邮件营销',
            type:'line',
            data:[120, -132, 101, -134, 90, -230, 210]
        },
        {
            name:'联盟广告',
            type:'line', yAxisIndex: 1,
            data:[1220, -182, 1191, -234, 1290, -330, 1310]
        },

    ]
};

其他信息 (Other comments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstaleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions