echarts icon indicating copy to clipboard operation
echarts copied to clipboard

折线图在yAxis : [ { type : 'value', scale:true, minInterval:1 } ], data:[8,8,8,8,9]的情况下无法正常显示折线

Open zhao-zwl opened this issue 10 years ago • 0 comments

问题简述 (One-line summary)

折线图在yAxis : [ { type : 'value', scale:true, minInterval:1 } ],
data:[8,8,8,8,9]

版本及环境 (Version & Environment)

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

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)

折线正常显示

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

ECharts配置项 (ECharts option)

option = {
    title: {
        text: '堆叠区域图'
    },
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['周一','周二','周三','周四','周五','周六','周日']
        }
    ],
    yAxis : [
        {
            type : 'value',
            scale:true,
            minInterval:1
        }
    ],
    series : [
        {
            name:'邮件营销',
            type:'line',
            stack: '总量',
            areaStyle: {normal: {}},
            data:[8,8,8,8,9]
        }
    ]
};


其他信息 (Other comments)

image

zhao-zwl avatar Sep 28 '16 02:09 zhao-zwl