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

SkipNull options is not fully working #8951

Closed
vaasu070 opened this issue Apr 22, 2021 · 1 comment · Fixed by #8972
Closed

SkipNull options is not fully working #8951

vaasu070 opened this issue Apr 22, 2021 · 1 comment · Fixed by #8972
Milestone

Comments

@vaasu070
Copy link

vaasu070 commented Apr 22, 2021

SkipNull option is working for grouped bar plots only on some conditions.
Please look at the sample code here to observe he unexpected behavior. Bars are overlapping which ideally should not have been. Also tooltip position does not seem right.

@kurkle
Copy link
Member

kurkle commented Apr 22, 2021

Turning the bg to semitransparent of the first dataset reveals the 2nd bar of 2nd dataset is sized properly, but placed in wrong location:

image

Error probably happens here, where we are getting the stack index of the dataset and not considering skipNull:

const stackIndex = me._getStackIndex(me.index, me._cachedMeta.stack);

A side note, looks like some code still relies on the bars to be at same dataIndex for the same category:

const val = item.controller.getParsed(dataIndex)[

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

Successfully merging a pull request may close this issue.

2 participants