Skip to content

yAxis的max min为何不生效? #16

@DDDBear

Description

@DDDBear

参数配置如下。

option = {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['广告位展现量','点击量']
    },
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : [
              '2013-04-25',
              '2013-04-26',
              '2013-04-27',
              '2013-04-28',
              '2013-04-29',
              '2013-04-30',
              '2013-05-01'
            ]
        }
    ],
    yAxis : [
        {
            type : 'value',
            axisLabel : {
                textStyle: {color: '#186cc3'}
            },
            min: 0,
            max: 60000,
          scale: true,
            splitLine : {show : true}
        },
        {
            type : 'value',
            axisLabel : {
            },
            min: 0,
            max: 400,
            splitLine : {show : true}
        }
    ],
    series : [
        {
            name:'广告位展现量',
            type:'line',
            stack: '总量',
            symbol: 'emptyCircle',
            data:[45000, 42000, 50000, 55000, 51000, 52000, 55000]
        },
        {
            name:'点击量',
            type:'line',
            symbol: 'emptyCircle',
            yAxisIndex: 1,
            data:[200, 180, 280, 190, 290, 290, 283]
        }
    ]
};

预期效果:
image

此种效果的chart是否支持?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions