Skip to content

Fitted data on all null values does not dash line #1047

@nickofthyme

Description

@nickofthyme

Describe the bug
When fitting data using the zero fit. The line is fit to the correct values but when all value are null or undefined the line is rendered without dashes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/objective-architecture-xnnvs?file=/src/App.tsx
  2. Notice line is drawn as solid not dashed
  3. Uncomment the fourth row of the dataset
  4. Notice the line becomes dashed.

Expected behaviour
The fitted line should be dashed

Screenshots
image

As soon as a non-null value is added to the dataset, the line is correctly dashed.

image

Version (please complete the following information):

  • Elastic Charts: master

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersreleasedIssue released publicly

    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