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

fix(metric): move body to datum #2336

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Conversation

nickofthyme
Copy link
Collaborator

Summary

When adding support for a body component in the Metric gap area in #2303, we put it on the top-level Metric. This inhibites consumers from having a different body per MetricDatum in a grid. This PR moves the body option to the MetricDatum.

Issues

#2182

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • All related issues have been linked (i.e. closes #123, fixes #123)
  • New public API exports have been added to packages/charts/src/index.ts
  • Unit tests have been added or updated to match the most common scenarios
  • The proper documentation and/or storybook story has been added or updated

@nickofthyme nickofthyme added the :metric Related to Metric chart label Feb 13, 2024
@nickofthyme nickofthyme merged commit 3390e25 into elastic:main Feb 13, 2024
13 checks passed
@nickofthyme nickofthyme deleted the fix-metric-body branch February 13, 2024 21:31
nickofthyme pushed a commit that referenced this pull request Feb 13, 2024
# [64.0.0](v63.1.0...v64.0.0) (2024-02-13)

### Bug Fixes

* **deps:** update dependency @elastic/eui to ^93.1.0 ([#2332](#2332)) ([855e357](855e357))
* **deps:** update dependency @elastic/eui to v93 ([#2324](#2324)) ([ce19379](ce19379))
* **deps:** update dependency @playwright/test to ^1.41.2 ([#2330](#2330)) ([1f8c638](1f8c638))
* **metric:** move `MetricSpec.body` to `MetricBase` ([#2336](#2336)) ([3390e25](3390e25))
* use passed size in pixel without waiting for resizeObserver ([#2270](#2270)) ([f9c11fc](f9c11fc))

### chore

* **bullet:** bullet improvements, bug fixes and renaming ([#2319](#2319)) ([34fd38b](34fd38b))

### BREAKING CHANGES

* **metric:** Moves `MetricSpec.body` to `MetricDatum.body`/`MetricBase.body`
* **bullet:** Rename `BulletGraph` to `Bullet` and `ColorBandSimpleConfig.classes` to `steps`
shahzad31 added a commit to elastic/kibana that referenced this pull request Mar 4, 2024
## Summary

Since
[Elastic/charts](elastic/elastic-charts#2336)
now supports body content in metric chart, removing the custom
implementation in favor !!

### Testing

- [ ] Make sure badges works as expected in Card view
<img width="1728" alt="image"
src="https://github.com/elastic/kibana/assets/3505601/cda11ded-0297-4636-bc7d-26d9e76eb8d1">

---------

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:metric Related to Metric chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant