Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolation fails for x=time when data for y has gaps #44

Open
angiehjort opened this issue Oct 11, 2022 · 0 comments
Open

Interpolation fails for x=time when data for y has gaps #44

angiehjort opened this issue Oct 11, 2022 · 0 comments

Comments

@angiehjort
Copy link
Member

angiehjort commented Oct 11, 2022

see this line chart

image

here is the original data in purple and how interpolation result should look like in green

image

Turns out there is an error in vizabi core:
the field "x" doesn't get interpolated and instead of 1996 1997 1998 1999 2000 it shows 1996 2000 2000 2000 2000

my fix in the commit below is ugly, but it works.
but it's ugly, can it be done more elegant?

the result should look like this then

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant