Skip to content

feat(components): Add Meter component#2846

Draft
awahab07 wants to merge 19 commits into
elastic:mainfrom
awahab07:250708_elastic-charts_meter-component
Draft

feat(components): Add Meter component#2846
awahab07 wants to merge 19 commits into
elastic:mainfrom
awahab07:250708_elastic-charts_meter-component

Conversation

@awahab07
Copy link
Copy Markdown
Collaborator

@awahab07 awahab07 commented May 27, 2026

Summary

  • add a public Meter component with single, solid-palette, and gradient fill modes
  • support positive-only, negative-only, and mixed-sign domains, including zero-anchored fills and review-driven clamping/normalization fixes
  • refactor Metric progress bars to render through Meter without changing the focused Metric progress-bar regressions
  • add Meter Storybook coverage and dedicated Playwright VRT coverage

Details

  • add a public Meter component to @elastic/charts
  • support single, solid, and gradient fill styles for positive-only, negative-only, and mixed-sign domains
  • keep Metric's existing progress-bar API intact while moving its DOM rendering onto Meter
  • preserve zero-anchored mixed-sign behavior, including a zero-baseline cue for signed domains
  • add Meter stories for positive modes, signed domains, markers/vertical layouts, and a grouped signed-range comparison story
  • add dedicated Meter Playwright VRT coverage and refresh its snapshots
  • clamp and round Metric percentage output used for titles/ARIA, and fix Meter story layout/theme issues

Issues

Implements the upstream requirement for elastic/kibana#250708.

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

@awahab07 awahab07 added the :new chart type New chart type related feature request label May 27, 2026
@awahab07 awahab07 removed the :new chart type New chart type related feature request label May 27, 2026
@awahab07 awahab07 linked an issue May 27, 2026 that may be closed by this pull request
@awahab07
Copy link
Copy Markdown
Collaborator Author

awahab07 commented Jun 1, 2026

buildkite update vrt

@elastic-datavis
Copy link
Copy Markdown
Contributor

@elastic-datavis
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] Add progress bars in tables

1 participant