echarts icon indicating copy to clipboard operation
echarts copied to clipboard

echarts 3里是不是不支持echarts2的noDataLoadingOption配置了?

Open rikan opened this issue 10 years ago • 2 comments

问题简述 (One-line summary)

echarts 3里是不是不支持echarts2的noDataLoadingOption配置了?在echarts3里没有找到相关配置,echart3里配置了这一项也不起作用.

版本及环境 (Version & Environment)

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

期望结果 (Expected behaviour)

echarts3 可以配置出同echarts2一样noDataLoadingOption效果

ECharts配置项 (ECharts option)

option = {
    title : {
        text: '雨量流量关系图',
        subtext: '数据来自西安兰特水电测控技术有限公司',
        x: 'center',
        align: 'right'
    },
    grid: {
        bottom: 80
    },
    toolbox: {
        feature: {
            dataZoom: {
                yAxisIndex: 'none'
            },
            restore: {},
            saveAsImage: {}
        }
    },
    tooltip : {
        trigger: 'axis',
        axisPointer: {
            animation: false
        }
    },
    legend: {
        data:['流量','降雨量'],
        x: 'left'
    },
    dataZoom: [
        {
            show: true,
            realtime: true,
            start: 65,
            end: 85
        },
        {
            type: 'inside',
            realtime: true,
            start: 65,
            end: 85
        }
    ],
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            axisLine: {onZero: false},
            data : [

            ]
        }
    ],
    yAxis: [
        {
            name: '流量(m^3/s)',
            type: 'value',
            max: 500
        },
        {
            name: '降雨量(mm)',
            nameLocation: 'start',
            max: 5,
            type: 'value',
            inverse: true
        }
    ],
    noDataLoadingOption:{
        text:'没有数据',
        effect:'bubble'
    },
    series: [

    ]
};


rikan avatar Aug 21 '16 12:08 rikan

不支持了,可以自行根据需要显示想要的无数据提示,echarts 并不适合做这个

pissang avatar Aug 22 '16 06:08 pissang

we need this feature too

cwtuan avatar Mar 21 '18 08:03 cwtuan