Skip to content

配置项series.data数组里如果同时存在null和对象,将会报错Cannot read property 'selected' of null #14293

@lvding

Description

@lvding

Version

5.0.2

Steps to reproduce

非连续的折线图/柱状图,在3.x和4.x版本时,
series.data可以用类似[null,{value:3},{value:4},null]这样的数组呈现,而在5.x版本时候必须使用[{value:null},{value:3},{value:4},{value:null}]
否则将会报错Cannot read property 'selected' of null

What is expected?

正常呈现非连续的折线图

What is actually happening?

报错Cannot read property 'selected' of null

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty: easyIssues that can be fixed more easily than the average.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions