Skip to content

NaN if all data is equal to 0. #27

@mikerodham

Description

@mikerodham

In my use case I specifically capture items over the last ten days. If nothing has happened in those ten days the graph will look like this:

img_36453144ebdf-1

As you can see in the bottom left corner it displays NaN when it should display 0.

Here is my data from the server.

labels: [],
datasets: [{
  data: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
}]

Edit:

Also is there any choice for whole numbers only down the Y axis?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions