[MetricVis] Add possibility to configure label font and position in metric unified renderer#125251
Conversation
|
@elasticmachine merge upstream |
…configure_labels_params_metric
Kuznietsov
left a comment
There was a problem hiding this comment.
Code mostly LGTM 👍
Only a couple of issues should be addressed.
@VladLasitsa, thanks for your efforts.
src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts
Outdated
Show resolved
Hide resolved
src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts
Outdated
Show resolved
Hide resolved
Kuznietsov
left a comment
There was a problem hiding this comment.
Changes LGTM 👍 Thanks, @VladLasitsa, good job 😃
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: cc @VladLasitsa |
There was a problem hiding this comment.
Tested and this looks pretty good to me, LGTM
Side note: To be able to use it for Visualize / Lens, the unified renderer needs to be able to pick up formatting from the table, seems like this is not the case yet:

kibana | kibana_context savedSearchId=null timeRange={timerange from="now-7d" to="now"} | esaggs index={indexPatternLoad id="90943e30-9a47-11e8-b64d-95841ca0b247"} aggs={aggTerms id="0" enabled=true schema="segment" field="extension.keyword" orderBy="1" order="desc" size=5 otherBucket=true otherBucketLabel="Other" missingBucket=false missingBucketLabel="(missing value)"} aggs={aggAvg id="1" enabled=true schema="metric" field="bytes"} metricsAtAllLevels=false partialRows=false |
metricVis metric={visdimension accessor="col-1-1"} bucket={visdimension accessor="col-0-0"} showLabels=true labelPosition="top" labelFont={font size=24 align="left"}
| render
Part of: #123797
Summary
labelFontandLabelPositionargs in metric expression.My.Canvas.Workpad.-.Kibana.1.mp4