Repository navigation
feat: add line chart, bar chart and sparkline - #236
Merged
Merged
Conversation
- Line Chart: line and area variants, springs per sample so data, hidden series and rescales morph together, edge-faded lines, receding line past the crosshair, axis pill, spring-follow tooltip, and a loading status with a placeholder that hands off to the draw-in - Bar Chart: grouped or stacked, vertical or horizontal, sort by total with bars gliding to new ranks, transform-only bars with rounded caps - Sparkline: compact trend with change badge, invertDelta and an optional interactive readout - Shared xy layer: data cleanup, nice ticks, curves, animated points, inspection slider, legend, tooltip rows and an accessible data table
…y tabs in previews - A click no longer pins line, bar and sparkline tooltips open: focus from the mouse closes on leave, while keyboard focus and touch taps still hold - Line and bar chart previews switch views with the library Tabs in the docs pill style instead of hand-rolled toggles
- The readout follows the pointer and sizes to its content; keyboard inspection anchors it at the end of the category's longest bar - A soft band glides behind the inspected category instead of dimming the others - Tooltip value rolls keep a short tween inside spring-based tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three new charts in the
chartscategory, on a sharedcomponents/charts/xy/layer.@beui/line-chart): line and area variants, monotone/linear/step curves.status="loading"shows a pulsing placeholder that hands off to the draw-in.@beui/bar-chart): grouped or stacked, vertical or horizontal,sortby visible total.@beui/sparkline): compact trend with an optional change badge (invertDeltafor lower-is-better metrics).interactiveadds one slider and a value readout.xy/layer:Why
The catalog had specialized charts but no plain line or bar chart, which are the most common requests. Sparkline covers stat cards and tables.
Accessibility
Also
launchedAt, previews and usage files, About and SEO copy, component dates and changelog lines.Tabsin the docs pill style.Verification
bun run checkpasses, andbun testpasses 190 accessibility tests, including newtests/xy-charts.a11y.test.tsx.