Skip to content

[Bug]: Cannot draw multiple lines with empty point #6

Description

@stregouet

Bug description

hi,
first thanks for this great project! This is a long time I try to build a chart declarative library for solidjs and you dit it!
Here is my bug: I try to build two lines on a graph but there are some hole in the second line (there is no y data for some x), but console report some errors when I try to plot these points: I get some NaN in line and path svg. Do you see any workaround?

Reproduction Link

https://github.com/stregouet/test-solidcharts

Reproduction Steps

my reproduction repo is just a npm create vite@latest with a FirstChart.tsx component. If you run npm run dev and go to localhost:5173 you will see error in browser console because of the following lines

  if (index === 3) {
    delete data.value2;
  }

Expected behavior

I expect a way to configure second line on how to handle missing point or just ignore missing point.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

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