-
Notifications
You must be signed in to change notification settings - Fork 118
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
Percentage area charts can have gaps #1053
Comments
Thanks for opening this. I can't seem to repro this in our codesandbox with the information you provided. Could you take a look and see if you can repro it here https://codesandbox.io/s/eager-sid-y48o8?file=/src/App.tsx? Also could be related to #618 |
Your codesandbox made me found another bug. :D Adding a date to the timestamps makes the bug appear: https://codesandbox.io/s/blue-microservice-b3mf9?file=/src/App.tsx |
😭 To me, this functionality is expected in the way we are handling fitting missing and An edge case here is when all the y values are zero at a given x value on a stacked @markov00 do you agree? |
But if the chart is set to percentage, it should not require to have any fitting function: the total of each bucket is either 100% or 0%. Area with gaps, 5 entries in the tooltip: Few buckets later, 6 entries in the tooltip: And the problem is not entries omitted because of zero values, but actual |
Oh I see what you mean now. I'll take a look. |
Ok @dej611 found a bug in this example data set that incorrectly creates gaps on stacked percentage area charts. https://codesandbox.io/s/bad-gaps-data-ie93p?file=/src/App.tsx The gap goes away when we remove the last bucket from the data. |
We found the cause of this gap to be a bug in Chromium. For some cases when ChromeScreen.Recording.2021-03-09.at.12.08.53.PM.mp4SafariScreen.Recording.2021-03-09.at.12.10.47.PM.mp4We will file an issue with chromium but in the meantime, I will put up a hack PR to fix this visually until it is fixed on Chrome. |
🎉 This issue has been resolved in version 25.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
- This comes from the change to use the shared `getY1ScaledValueFn` that adds a little extra for elastic#1053. - The chrome bug causing elastic#1053 has now been fixed, so removing this code.
This PR mainly fixes the rendering of bars on a negative log scale. Also fixes the tooltip for banded bar charts. In addition this PR fixes some other issues including - Banded bar charts missing lower bound series in tooltip and legend - Wrong highlighting of tooltips value and highlighted bar geometries, particularly for banded bar charts. - Banded series items in tooltip were being shuffled according to the distance to the cursor position. Now I pre-sort them to not abruptly switch. - The Chrome bug from #1053 associated with filling areas containing sharp corners, is now fixed and since using the shared `getY1ScaledValueFn` and `getY0ScaledValueFn` functions I just removed this logic to avoid checking.
Describe the bug
Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1163912
When series have
null
or missing values for a date histogram with area percentage, a gap is rendered within the chart:To Reproduce
CSV data dump:
Kibana Cross Issues
Lens Cross Issue => elastic/kibana#93648
Checklist
Delete any items that are not applicable to this issue.
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: