Skip to content

chart_sparkline

Compact in-line trend strip from a NumberSeries, showing only the most recent values that fit the slot. Defaults to block-glyph bars; switch to style = "line" for a single-row Braille line, and zero-value columns get a baseline tick so sparse stretches read as data instead of padding.

AcceptsAnimates
number_seriesno
OptionTypeRequiredDefaultDescription
labelstringnoOptional inline prefix rendered to the left of the sparkline bars.
style"bars" | "line"no"bars"Visual treatment. bars uses ratatui's block glyphs (default); line draws a single-row Braille line across the values.

Overridable via the [theme] section of your dashboard config.

KeyDescription
textPrimary body text colour for plain renderers (text_plain, text_ascii, list_plain, animated_typewriter). The top step of the chrome ladder — brighter than text_secondary, reads as diffuse daylight on the ocean surface. Set text = "reset" to inherit the terminal's own foreground instead.
text_dimBarely-visible chrome text: timeline date prefixes, empty-state placeholder, clip hint. Replaces the old Modifier::DIM usage — set an explicit colour so rendering stays consistent across terminals (some render DIM as invisible, some as a no-op).
ShapeFetchers
number_seriesbasic_numbers, basic_read_store, claude_code_usage, code_largest_files, code_loc, codex_usage, crypto_watchlist, git_age, git_commits_activity, github_action_history, github_contributions, lastfm_top_albums, lastfm_top_artists, lastfm_top_tracks, linear_cycle, steam_charts, steam_owned_games, steam_recently_played, stock_watchlist, weather, weather_forecast
                                  
                           
                    
[[widget]]
id = "git_commits_activity"
fetcher = "git_commits_activity"
render = "chart_sparkline"