-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Replace expression_gauge
from Goal
to Bullet
#177766
Conversation
- Replace chart render spec and map previous inputs accordingly - Add support for Arc, 2/3 Circle and Circle gauges - Add option to select gauge type in vis options - Update convert to lens for gauge vis_type renderer - Update gauge sizing in Lens container
- rename all naming related to 2/3rds circle to major arc - rename half circle icon to arc
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Outdated
Show resolved
Hide resolved
...rverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/gauge.ts
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx
Show resolved
Hide resolved
expression_gauge
from Goal
to Bullet
expression_gauge
from Goal
to Bullet
src/plugins/chart_expressions/expression_gauge/public/components/utils/gauge_types.ts
Show resolved
Hide resolved
x-pack/plugins/lens/public/visualizations/gauge/toolbar_component/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wonderful! 😍 I have some design questions but nothing stopping this PR from merging. Love it, really.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together, @nickofthyme. It looks great! I've left a few comments below for your initial review. Let me know if you have any questions.
...plugins/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts
Show resolved
Hide resolved
...plugins/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts
Outdated
Show resolved
Hide resolved
...plugins/chart_expressions/expression_gauge/public/components/utils/use_gauge_size_by_type.ts
Show resolved
Hide resolved
@elastic/kibana-design could I get a CO review please. |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works fine, only two small things that don't affect the result of the review and that we can evaluate separately since they are not blockers:
- We should evaluate the default height of panel for Horizontal gauges
- Setting up a goals as 0 (zero) makes it disappear, since it gets in contrast with the zero baseline. We should consider which one is more important and evaluate that
Great job Nick! 🚀
Thanks for pointing out the |
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Summary
Migrates the Lens
Bullet Horizontal
andBullet Vertical
charts to the new design. Adds theSemi-circular Gauge
,Arc Gauge
andCircular Gauge
chart types to Lens. See comparison between old and new designs below.Horizontal Bullet
Vertical Bullet
Semi-circular Gauge
Arc Gauge
Circular Gauge
Details
Refactors Lens
expression_gauge
fromGoal
toBullet
centralMajor
andcentralMajorMode
onexpression_gauge
functioncloses #171903
closes #155131
Checklist
Delete any items that are not applicable to this PR.