Skip to content

"Cannot read property 'length' of undefined" when using bars on time series without 'labels' defined #2656

Description

@kennsippell

Creating a bar dataset with xAxis of type "type" can result in error "Cannot read property 'length' of undefined". Should add check for definition of data.labels before checking the length.

Adding empty labels[] to data avoids the error, but bars are drawn.

https://jsfiddle.net/dotacoach/p8vLm0bj/5/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions