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
Convert Aggs-based Goal
chart to Lens Gauge
#179489
base: main
Are you sure you want to change the base?
Conversation
@@ -14,15 +14,14 @@ import { | |||
} from '@kbn/visualizations-plugin/common'; | |||
import { GaugeVisParams } from '../../types'; | |||
|
|||
export const getConfiguration = ( | |||
export const getMetricConfiguration = ( |
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.
I think is better to have tick not linked with the bands, feels more natural and clean.
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.
Sorry @markov00, just circling back to this PR.
Can you elaborate what you mean here? This code line does not relate to your comment, are you speaking generally?
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.
I don't remember exactly but I think I was speaking about the migration from a agg base gauge to a lens gauge (not the one to a metric that looks like in this file).
In that case, I believe we should configure the automatic tick alignment by default and not a tick aligned with the bands.
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.
I believe that Ticks on bands
is on by default only when you initially switch on the Band colors
switch. but the conversion doesn't seems to enable that switch for the Agg-based Gauge, but it enables it to the agg-based Goal chart.
src/plugins/vis_types/gauge/public/convert_to_lens/configurations/metric.ts
Show resolved
Hide resolved
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Changes the Convert to Lens functionality for Aggs-Based
Goal
charts that are not bucketed and have a single metric to the LensGauge
chart.The single metric bucketed
Goal
still converts to the facetedMetric
in Lens until we add support for small multiples in Lens.Checklist