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

chore(bullet): bullet improvements, bug fixes and renaming #2319

Merged
merged 27 commits into from
Feb 13, 2024

Conversation

nickofthyme
Copy link
Collaborator

@nickofthyme nickofthyme commented Jan 29, 2024

Summary

Fixes a few bugs, adds features for bullet replacement and does a little cleanup.

Before

image

After

image

Note: this is done by using the Bullet.colorBands.classes option of the ColorBandSimpleConfig.

Issues

fixes #2244
closes #2307

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • 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
  • The code has been checked for cross-browser compatibility (Chrome, Firefox, Safari, Edge)
  • Visual changes have been tested with light and dark themes

@nickofthyme nickofthyme added :axis Axis related issue :styling Styling related issue :bullet Bullet chart related issues labels Jan 29, 2024
- create bands from classes if passed
- limit color scale domain to classes domain
- add checks to classes, ignore if invalid
@nickofthyme nickofthyme requested a review from markov00 February 1, 2024 01:27
@nickofthyme nickofthyme marked this pull request as ready for review February 1, 2024 01:27
@nickofthyme
Copy link
Collaborator Author

buildkite update screenshots

@nickofthyme
Copy link
Collaborator Author

@markov00 could you take a look at this when you have time?

packages/charts/src/utils/common.tsx Show resolved Hide resolved
e2e/tests/bullet_stories.test.ts Outdated Show resolved Hide resolved
@nickofthyme
Copy link
Collaborator Author

buildkite update screenshots

@nickofthyme nickofthyme requested a review from markov00 February 9, 2024 22:06
@nickofthyme
Copy link
Collaborator Author

buildkite update screenshots

@nickofthyme
Copy link
Collaborator Author

buildkite update screenshots

@nickofthyme nickofthyme merged commit 34fd38b into elastic:main Feb 13, 2024
13 checks passed
@nickofthyme nickofthyme deleted the bullet-tweaks branch February 13, 2024 15: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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue :bullet Bullet chart related issues :styling Styling related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Independent Bullet ticks and color bands Bullet does not render Metric with correct colors
2 participants