fix: clippedRanges when complete dataset is null#1037
fix: clippedRanges when complete dataset is null#1037nickofthyme merged 11 commits intoelastic:masterfrom
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
I have partially resolved this issue, looking for maintainers' insights on how they would like to proceed with it(there are multiple levels at which data could be filtered). |
|
Hi @anishagg17, thank you for your contribution, we really appreciated it. |
|
Hey @anishagg17 Thanks for opening this PR. I can't recall what the impetus was for opening this issue. I looked through your solution and after thinking more about this issue I am not sure this is something we need to change. The issue is suggesting we show the empty state UI when all values are null. After discussing this with the team, we think this is not the best approach as That being said. I do see an issue with how the line is being rendered see #1047. Would you like to take this issue? I can guide you where to look to fix this. |
Will really like to work on it, as it could help me gain more knowledge regarding the codeBase. I think that I should make changes for #1047 within this pr only. But could you please let me know where to make changes at, I observed several functions, within which the fix could be implemented |
|
Sweet! So the idea behind the fitting functions is that there is data that may be Screen.Recording.2021-03-03.at.11.15.02.AM.mp4Since there are possibly curved lines we must render the full line/area Where the red represents the These And here for line series... So with the example in the issue, the clipped ranges return elastic-charts/src/chart_types/xy_chart/rendering/utils.ts Lines 67 to 98 in 85b6ed3 Maybe we could check if all the values are Let me know if you have any questions about that and if you run into any issues. |
|
Sorry forgot to mention, it's totally fine to make the changes in this pr, just remove the filtering logic on the data for #883. |
|
jenkins test this please |
nickofthyme
left a comment
There was a problem hiding this comment.
Nicely done! Just a few simplifications.
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821200 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1202109 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821199 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1202109 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821200 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821200 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821199 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1821199 run. |
|
The Workflow run is cancelling this PR. It is an earlier duplicate of 1202109 run. |
|
jenkins test this please |
|
jenkins test this please |
|
Sorry about all the updating I had to make some updates to |
|
jenkins test this please |
Codecov Report
@@ Coverage Diff @@
## master #1037 +/- ##
==========================================
- Coverage 72.80% 72.73% -0.07%
==========================================
Files 363 379 +16
Lines 11242 10854 -388
Branches 2445 2218 -227
==========================================
- Hits 8185 7895 -290
+ Misses 3043 2855 -188
- Partials 14 104 +90
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
@anishagg17 all good to merge this whenever you want 👍🏼 |
markov00
left a comment
There was a problem hiding this comment.
LGTM, thanks @anishagg17 for your work on this, we really appreciate it
I can't merge this, Since this is a community submitted pull request. |
|
Oh yeah true. Done! Thanks again 🎉 |
|
🎉 This PR is included in version 25.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [25.1.1](elastic/elastic-charts@v25.1.0...v25.1.1) (2021-03-05) ### Bug Fixes * clippedRanges when complete dataset is null ([opensearch-project#1037](elastic/elastic-charts#1037)) ([e37b4a7](elastic/elastic-charts@e37b4a7)) * **tooltip:** allow explicit boundary element ([opensearch-project#1049](elastic/elastic-charts#1049)) ([118c2b5](elastic/elastic-charts@118c2b5))


Summary
Fixes: #1047
Before
After
Checklist
Delete any items that are not applicable to this PR.
src/index.ts(and stories only import from../srcexcept for test data & storybook)