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

[Gauge] Custom color support #126882

Merged
merged 56 commits into from
Mar 9, 2022

Conversation

Kuznietsov
Copy link
Contributor

@Kuznietsov Kuznietsov commented Mar 4, 2022

Summary

Completes part of #124925.
Added support of the custom colors, assigned at the legacy vislib chart.

Default

Legacy chart

Screenshot 2022-03-08 at 13 11 58

New chart

Screenshot 2022-03-08 at 13 12 46


Percentage mode

Legacy chart

Screenshot 2022-03-08 at 13 15 11

New chart

Screenshot 2022-03-08 at 13 15 38

Kuznietsov and others added 30 commits February 18, 2022 09:38
# Conflicts:
#	src/plugins/chart_expressions/expression_gauge/common/types/expression_renderers.ts
#	src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.test.tsx
#	src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
#	src/plugins/chart_expressions/expression_gauge/public/expression_renderers/gauge_renderer.tsx
@Kuznietsov Kuznietsov added backport:skip This commit does not require backporting impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort NeededFor:VisEditors release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.2.0 and removed WIP Work in progress labels Mar 8, 2022
@Kuznietsov Kuznietsov marked this pull request as ready for review March 8, 2022 12:06
@Kuznietsov Kuznietsov requested a review from a team as a code owner March 8, 2022 12:06
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

I am importing an 8.1 gauge with all the band colors overwritten and I don't see them applied on the chart.

This is the gauge on 8,1
image

and this is the same chart on the new library
image

@Kuznietsov
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 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
expressionGauge 9.7KB 10.3KB +579.0B

Page load bundle

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

id before after diff
expressionGauge 14.8KB 14.8KB +18.0B

History

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

cc @Kunzetsov

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

This looks great Yaroslav! Code LGTM. I tested it locally in Chrome.

@Kuznietsov Kuznietsov merged commit 2836018 into elastic:main Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort NeededFor:VisEditors release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants