Skip to content

雷达图indicator和series的data的value都是空的时候会报错 #6877

@OliviaSong

Description

@OliviaSong

雷达图indicator和series的data的value都是空的时候会报错

Version & Environment [版本及环境]

  • ECharts version [3.7.2]:
  • Browser version [chrome]:
  • OS Version [win10]:

兼容空值情况

ECharts option [ECharts配置项]

option = {
    title: {
        text: '基础雷达图'
    },
    tooltip: {},
    legend: {
        data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)']
    },
    radar: {
        // shape: 'circle',
        name: {
            textStyle: {
                color: '#fff',
                backgroundColor: '#999',
                borderRadius: 3,
                padding: [3, 5]
           }
        },
        indicator: [

        ]
    },
    series: [{
        name: '预算 vs 开销(Budget vs spending)',
        type: 'radar',
        // areaStyle: {normal: {}},
        data : [
            {
                value : [],
                name : '预算分配(Allocated Budget)'
            },
             {
                value : [],
                name : '实际开销(Actual Spending)'
            }
        ]
    }]
};

Other comments [其他信息]

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleInactive 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