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

Percent stacked option #222

Closed
gospodarsky opened this issue May 31, 2019 · 1 comment · Fixed by #250 or elastic/kibana#40751
Closed

Percent stacked option #222

gospodarsky opened this issue May 31, 2019 · 1 comment · Fixed by #250 or elastic/kibana#40751
Assignees
Labels
enhancement New feature or request released Issue released publicly

Comments

@gospodarsky
Copy link

gospodarsky commented May 31, 2019

As a user I'd like to have a Percent option in the stacked select.

How it works now:
image

The Y axe consists of values (from 0 to 1) which reflect a ratio between lines. The 1 means 100%.

In absolute values IT and US have got the same value: 51 (on May 11, 2019). In relative values the both have got 0.5 of 1. 0.5 + 0.5 = 1.

Regarding the migration we should keep previous functionality and implement the feature in new charts.

@gospodarsky gospodarsky added the enhancement New feature or request label May 31, 2019
markov00 added a commit to markov00/elastic-charts that referenced this issue Jun 26, 2019
This commit will add a new props that allows stacking bars, areas and lines using the percentage
mode. For each stacked x value, we scale their value to the percentage on that bucket.

fix elastic#222
markov00 added a commit to markov00/elastic-charts that referenced this issue Jul 5, 2019
Add the `stackAsPercentage` prop to allow stacking bars and areas computing the percentage of each data point on each bucket/x value.

fix elastic#222
markov00 pushed a commit that referenced this issue Jul 5, 2019
# [7.2.0](v7.1.0...v7.2.0) (2019-07-05)

### Bug Fixes

* **ticks:** fill in additional ticks for histogram ([#251](#251)) ([af92736](af92736))

### Features

* **series:** stack series in percentage mode ([#250](#250)) ([1bfb430](1bfb430)), closes [#222](#222)
@markov00
Copy link
Member

markov00 commented Jul 5, 2019

🎉 This issue has been resolved in version 7.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jul 5, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
# [7.2.0](elastic/elastic-charts@v7.1.0...v7.2.0) (2019-07-05)

### Bug Fixes

* **ticks:** fill in additional ticks for histogram ([opensearch-project#251](elastic/elastic-charts#251)) ([8045531](elastic/elastic-charts@8045531))

### Features

* **series:** stack series in percentage mode ([opensearch-project#250](elastic/elastic-charts#250)) ([892a826](elastic/elastic-charts@892a826)), closes [opensearch-project#222](elastic/elastic-charts#222)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released Issue released publicly
Projects
None yet
2 participants