mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Lens] Fix Metric visualization scale (#113956)
* 🐛 Fix metric rescale * 📸 Restored old snapshots * 🐛 Extend the fix to all scenarios * 📸 Refresh snapshots for new fix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
435404e961
commit
fa69602b34
2 changed files with 16 additions and 6 deletions
|
@ -90,7 +90,9 @@ describe('metric_expression', () => {
|
|||
reportDescription="Fancy chart description"
|
||||
reportTitle="My fanci metric chart"
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale
|
||||
key="3"
|
||||
>
|
||||
<div
|
||||
data-test-subj="lns_metric_value"
|
||||
style={
|
||||
|
@ -135,7 +137,9 @@ describe('metric_expression', () => {
|
|||
reportDescription="Fancy chart description"
|
||||
reportTitle="My fanci metric chart"
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale
|
||||
key="last"
|
||||
>
|
||||
<div
|
||||
data-test-subj="lns_metric_value"
|
||||
style={
|
||||
|
@ -179,7 +183,9 @@ describe('metric_expression', () => {
|
|||
reportDescription=""
|
||||
reportTitle=""
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale
|
||||
key="3"
|
||||
>
|
||||
<div
|
||||
data-test-subj="lns_metric_value"
|
||||
style={
|
||||
|
@ -223,7 +229,9 @@ describe('metric_expression', () => {
|
|||
reportDescription=""
|
||||
reportTitle=""
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale
|
||||
key="3"
|
||||
>
|
||||
<div
|
||||
data-test-subj="lns_metric_value"
|
||||
style={
|
||||
|
@ -309,7 +317,9 @@ describe('metric_expression', () => {
|
|||
reportDescription=""
|
||||
reportTitle=""
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale
|
||||
key="0"
|
||||
>
|
||||
<div
|
||||
data-test-subj="lns_metric_value"
|
||||
style={
|
||||
|
|
|
@ -89,7 +89,7 @@ export function MetricChart({
|
|||
reportDescription={description}
|
||||
className="lnsMetricExpression__container"
|
||||
>
|
||||
<AutoScale>
|
||||
<AutoScale key={value}>
|
||||
<div data-test-subj="lns_metric_value" style={{ fontSize: '60pt', fontWeight: 600 }}>
|
||||
{value}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue