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

feat(metric): add empty cell marker #1819

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

markov00
Copy link
Member

Summary

This PR adds a small visual marker on the empty cells, cells that are configured to exist but without data (datum: undefined) . The usual case is when a user specify a grid rows/columns but one or more cells are filtered out of the view.
Instead of removing those cells from the grid, we simply blank them out leaving a visual marker to show that the cell is empty.

A storybook knob was also added to show the border and the border radius around the grid

Screenshot 2022-09-13 at 11 28 20

The theme is also changed and we introduced the border color property.

Issues

fix #1786

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The :theme label has been added and the @elastic/eui-design team has been pinged when there are Theme API changes
  • 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 all available themes including dark, light, eui-dark & eui-light

@markov00 markov00 added enhancement New feature or request :theme :metric Related to Metric chart labels Sep 13, 2022
@markov00
Copy link
Member Author

buildkite update screenshots

@markov00 markov00 marked this pull request as ready for review September 13, 2022 12:58
Copy link
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simple improvement!

@markov00 markov00 merged commit 58ca9c3 into elastic:master Sep 15, 2022
@markov00 markov00 deleted the 2022_09_13-improve_vacant_tiles branch September 15, 2022 08:32
nickofthyme pushed a commit that referenced this pull request Sep 17, 2022
# [49.0.0](v48.0.1...v49.0.0) (2022-09-17)

### Bug Fixes

* **deps:** update dependency @elastic/eui to v67 ([#1815](#1815)) ([a45b3d3](a45b3d3))
* **metric:** improve multi-line wrapping ([#1816](#1816)) ([f9c790e](f9c790e))

### Features

* **metric:** add a textual value ([#1817](#1817)) ([d7610ad](d7610ad))
* **metric:** add empty cell marker ([#1819](#1819)) ([58ca9c3](58ca9c3))
* **metric:** expose min metric height ([#1825](#1825)) ([c9bd634](c9bd634))

### BREAKING CHANGES

* **metric:** the metric types have been changed: the `value: number` and `valueFormatter` are only available for a numerical, progress bar, or trend metric. For the textual metric, the `value` has a `string` type.
The `progressBarDirection` and `trendShape` properties are now required.
@elastic elastic deleted a comment from elastic-datavis bot Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :metric Related to Metric chart :theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve appearance of vacant tile slots
3 participants