Closed stockiNail closed 2 years ago
Thanks @stockiNail to have a look!
From your comment on #319:
I think could make sense to manage labels even if the related element is skipped.
It does not make sense to me to create a label that will never be displayed. If I remember correctly, there is a few places in the code that assume there is no label for missing or invisible data. There are unit tests (you removed one) and I would prefer to not change this logic.
Instead, I think the issue comes from the initial values of the layout properties:
_idx: j
assumes that datasets
contains all data since we use j
.
So I would try to replace _idx: j
by _idx: label._index
to see if that fixes the issue reported in #319.
Thanks @simonbrunel I'm submitting new PR with your hint
PR #323
Fix #319