Skip to content

BarItem proptype can't accept js date object #113

@tlowande

Description

@tlowande

For our sort function to work properly with dates in line-chart, data needs to be JS date objects: new Date()

If we apply the above line data into a BarChart, because dates are objects, Bar gives a warning:

Invalid prop data.indexValue of type date supplied to BarItem, expected string.

however, the chart seems to compile just fine.

Didn't find much online over barChart and dates

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions