Skip to content

Add Custom Error for Box Plots w/Insufficient Data #26

@GeorgeBerdovskiy

Description

@GeorgeBerdovskiy

Background

When the user passes a data set with only one point to the box_plot helper, they will see a strange error regarding operations on nil values. This is caused by logic, which assumes there are two or more data points. If the user only has one point (or none), they should see a custom error that says so.

Goal

Modify the box_plot helper to show a helpful error message when the data argument is empty or has only one point inside of it. Good luck!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BeginnerFor beginners 🐣Bug FixSmashes bugs 🪳StandaloneDoesn't depend on other issues 💪

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions