Skip to content

@nivo/line warnings when using Nivo >= 0.87.0 line chart #2612

Open
@DanielDz21

Description

@DanielDz21

Describe/explain the bug
Hello everyone, I am trying to update the library and getting the following warnings in the console.

Warning: Failed prop type: The prop `legendOffsetX` is marked as required in `_n`, but its value is `undefined`.
Warning: Failed prop type: The prop `legendOffsetY` is marked as required in `_n`, but its value is `undefined`.
Warning: Failed prop type: The prop `legendOrientation` is marked as required in `_n`, but its value is `undefined`.

To Reproduce
Open the console in the codesandbox to see the warnings.

Expected behavior
No warnings, since the props are not actually required.

Screenshots
image

Additional context
This theoretically was fixed in the version 0.87.0 - a lot of them were removed from the required props. But it seems that some of them are still required, like legendOffsetX, legendOffsetY, and legendOrientation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions