Skip to content

LineChart disappears while zooming in if spanGaps: true and non-null datapoints are out of bounds #11956

@ale-coe

Description

@ale-coe

When using a dataset that has spanGaps: true and several null values in its data and the user zooms in, the lineChart disappears. The reason seems to be that the non-null values have no representation on the x-axis anymore.
See this codepen.

I would expect that there is some interpolation going on internally that addresses this issue but this isn't the case.
I tried modifying the dataset by interpolating "missing" values but there were visible jumps when rendering the line during zoom events which makes it not applicable for my use case.

Is there any workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions