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

[TSVB] Adds a color picker in percentiles and percentiles rank aggs #107390

Merged
merged 14 commits into from
Aug 12, 2021

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Aug 2, 2021

Summary

Closes #102325

It adds the color picker on percentiles and percentiles_rank aggregations to give the users the ability to change the percentiles series color. This will make the percentiles created to be more readable.

The color picker is visible only for timeseries, gauge and topN charts and only when the series is grouped by everything.
If it is grouped by terms or filters it follows its color rules.

I also moved the percent in the front of the legend in order to be more easy to distinguish it as usually the legends for these aggregations are quite long. This will be improved when this will be merged and applied to kibana.

image

image

Checklist

@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@stratoula stratoula changed the title Tsvb improve percentiles [Tsvb] Adds a color picker in percentiles and percentiles rank aggs Aug 4, 2021
@stratoula stratoula changed the title [Tsvb] Adds a color picker in percentiles and percentiles rank aggs [TSVB] Adds a color picker in percentiles and percentiles rank aggs Aug 4, 2021
@stratoula stratoula added Feature:TSVB TSVB (Time Series Visual Builder) release_note:enhancement v7.15.0 v8.0.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Aug 4, 2021
@stratoula stratoula marked this pull request as ready for review August 4, 2021 11:41
@stratoula stratoula requested a review from a team August 4, 2021 11:41
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@mbondyra
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Overall looks good! Tested and couldn't find anything breaking. I left two nit comments and I am wondering if maybe it requires one or two more tests but that's up to you. LGTM 🆗

@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visTypeTimeseries 1004.2KB 1005.9KB +1.7KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
visTypeTimeseries 24.8KB 24.9KB +118.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stratoula stratoula merged commit 2ebdf3e into elastic:master Aug 12, 2021
stratoula added a commit to stratoula/kibana that referenced this pull request Aug 12, 2021
…lastic#107390)

* WIP - Improve the way that percentiles are rendered in TSVB

* Adds color picker to percentile and percentile ranks

* initialize color

* Be backwards compatible

* Fixes unit tests

* Add a unit test for percentile rank

* Fix unit tests

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
stratoula added a commit that referenced this pull request Aug 12, 2021
…107390) (#108357)

* WIP - Improve the way that percentiles are rendered in TSVB

* Adds color picker to percentile and percentile ranks

* initialize color

* Be backwards compatible

* Fixes unit tests

* Add a unit test for percentile rank

* Fix unit tests

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:TSVB TSVB (Time Series Visual Builder) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TSVB] Option to change the series color on percentiles
4 participants