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

fix: path of stacked area series with missing values #703

Merged
merged 3 commits into from
Jun 12, 2020

Conversation

nickofthyme
Copy link
Collaborator

Summary

Fixes #680

Accounts for sorted xValues when sorting filled missing values.

Checklist

Delete any items that are not applicable to this PR.

  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios

@nickofthyme nickofthyme added bug Something isn't working :xy Bar/Line/Area chart related labels Jun 11, 2020
@nickofthyme nickofthyme requested a review from markov00 June 11, 2020 18:18
@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2020

Codecov Report

Merging #703 into master will increase coverage by 2.03%.
The diff coverage is 80.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #703      +/-   ##
==========================================
+ Coverage   73.13%   75.16%   +2.03%     
==========================================
  Files         271      279       +8     
  Lines        8784     8815      +31     
  Branches     1747     1736      -11     
==========================================
+ Hits         6424     6626     +202     
+ Misses       2309     2132     -177     
- Partials       51       57       +6     
Impacted Files Coverage Δ
...art_types/goal_chart/layout/viewmodel/viewmodel.ts 3.12% <0.00%> (ø)
.../chart_types/goal_chart/state/selectors/tooltip.ts 41.66% <ø> (ø)
src/chart_types/index.ts 100.00% <ø> (ø)
...types/partition_chart/layout/types/config_types.ts 100.00% <ø> (ø)
...es/partition_chart/layout/types/viewmodel_types.ts 83.33% <ø> (ø)
...hart_types/partition_chart/layout/utils/measure.ts 100.00% <ø> (ø)
...tion_chart/layout/viewmodel/hierarchy_of_arrays.ts 88.88% <ø> (ø)
src/chart_types/specs.ts 100.00% <ø> (ø)
...ypes/xy_chart/renderer/canvas/annotations/lines.ts 25.00% <0.00%> (ø)
src/chart_types/xy_chart/renderer/canvas/points.ts 20.83% <ø> (+4.16%) ⬆️
... and 347 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c313c63...c5490c2. Read the comment docs.

Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, finally we fixed this, thank you! ❤️
Screenshot 2020-06-12 at 14 39 11

@@ -60,6 +60,15 @@ describe('smoke tests', () => {
});

afterAll(async() => {
const entries = await driver.manage().logs().get(logging.Type.BROWSER);
console.log('EEEERRORS', JSON.stringify(entries));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MMMMMM ppppprrrrooobbbbabbblyyy wwwweeee shhhhhooouuuuulddd fiiiix thiiiiiis tttttttypoooooo :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, see #705

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed see force push

@markov00 markov00 self-requested a review June 12, 2020 12:40
@nickofthyme nickofthyme force-pushed the fix/stacked-missing-value branch from 6063029 to c5490c2 Compare June 12, 2020 13:14
@nickofthyme
Copy link
Collaborator Author

@markov00 yeah I first thought that screenshot was broken but then I realized I fixed it 😍

@nickofthyme nickofthyme merged commit 2541180 into elastic:master Jun 12, 2020
@nickofthyme nickofthyme deleted the fix/stacked-missing-value branch June 12, 2020 14:02
markov00 pushed a commit that referenced this pull request Jun 15, 2020
# [19.5.0](v19.4.1...v19.5.0) (2020-06-15)

### Bug Fixes

* **tooltip:** show true opaque colors in tooltips ([#629](#629)) ([23290be](23290be)), closes [#628](#628)
* path of stacked area series with missing values ([#703](#703)) ([2541180](2541180))
* remove double rendering ([#693](#693)) ([ebf2748](ebf2748)), closes [#690](#690)

### Features

* **partition:** add 4.5 contrast for text in partition slices ([#608](#608)) ([eded2ac](eded2ac)), closes [#606](#606)
* add screenshot functions to partition/goal ([#697](#697)) ([5581c3c](5581c3c))
@markov00
Copy link
Member

🎉 This PR is included in version 19.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jun 15, 2020
nickofthyme referenced this pull request Sep 15, 2020
This commit adds the wiggle and silhouette stacks mode as available in vislib that allow the creation of streamgraph. It is also to fix fit functions for stacked charts. The commit also add the following fixes:
- fit functions are now available also on stacked charts
- the legend extra value is now displayed, on-demand, only on charts with a continuous x-axis
- Adjusts slightly the way fitted data is represented in the case of null values and no fit option specified. It renders an empty area in this case
- for zero-based charts (bar and area charts) the fit option doesn't have any effects
- djusts the clipped ranges for ordinal charts, where the lines where wrongly clipped due to a missing translate call when rendering

BREAKING CHANGE: the first parameter of `PointStyleAccessor` and `BarStyleAccessor` callbacks is changed from `RawDataSeriesDatum` to `DataSeriesDatum`. `stackAsPercentage` prop is replaced by `stackMode` that accept one `StackMode`.

fix #766
fix #715
close #450
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [19.5.0](elastic/elastic-charts@v19.4.1...v19.5.0) (2020-06-15)

### Bug Fixes

* **tooltip:** show true opaque colors in tooltips ([opensearch-project#629](elastic/elastic-charts#629)) ([323b325](elastic/elastic-charts@323b325)), closes [opensearch-project#628](elastic/elastic-charts#628)
* path of stacked area series with missing values ([opensearch-project#703](elastic/elastic-charts#703)) ([93f063f](elastic/elastic-charts@93f063f))
* remove double rendering ([#693](elastic/elastic-charts#693)) ([1a9bbb9](elastic/elastic-charts@1a9bbb9)), closes [#690](elastic/elastic-charts#690)

### Features

* **partition:** add 4.5 contrast for text in partition slices ([opensearch-project#608](elastic/elastic-charts#608)) ([59d6d49](elastic/elastic-charts@59d6d49)), closes [opensearch-project#606](elastic/elastic-charts#606)
* add screenshot functions to partition/goal ([opensearch-project#697](elastic/elastic-charts#697)) ([6d2ff64](elastic/elastic-charts@6d2ff64))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue released publicly :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing values default to value when stacked
3 participants