Skip to content

Support for empty data sets? #72

@tfwright

Description

@tfwright

Right now an error is raised if an empty list is passed to a data set:

** (exit) an exception was raised:
   ** (FunctionClauseError) no function clause matching in MapSet.new_from_list/2
     (elixir 1.13.4) lib/map_set.ex:119: MapSet.new_from_list(nil, [nil: []])
...

While there is arguably not much use of displaying an empty chart, it means that somewhat awkward conditional logic is required for cases where there is no data to show in the chart. Personally I'd like to see a way to display a custom "empty state" message where the chart otherwise would be with the same dimensions.

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