Lumeo

Sparkline

Compact inline SVG trend chart — drop anywhere: table cells, KPI strips, notification badges.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Sparkline />

When to Use

  • Show a trend inline next to a number, label, or status
  • Add tiny charts to DataGrid/Table cells without reaching for the full Chart component
  • Compose Tremor-style KPI strips where space is limited
  • Prefer SparkCard when you need a framed tile, or Chart for axes, tooltips, and legends
$12,450
+4.2%
Ticker Price Change Trend
AAPL $189.42 +1.8%
MSFT $412.90 +0.6%
TSLA $243.11 -2.3%
NVDA $916.55 +3.4%

Switch chart type to compare Line, Area, and Bars.

Revenue
$48,290
Errors
1,204
Sessions
8,492

API Reference

Property Type Default Description
ValuesIEnumerable<double>?nullSeries to plot. If null/empty, a muted baseline is rendered.
Heightint32Rendered pixel height (also the viewBox Y).
Colorstring?var(--color-primary)CSS color for stroke/fill. Accepts any CSS color or var().
TypeSparkTypeLineLine, Area, or Bars.
ShowAreaboolfalseShortcut — fill under the line when Type=Line.
ShowLastboolfalseRender a small dot at the last value.
StrokeWidthdouble1.5Line stroke width (unscaled via vector-effect).
AriaLabelstring?"Trend"Accessible label for the SVG role=img.
Classstring?nullExtra classes appended to the root SVG.
  • SparkCard — Framed tile wrapping a sparkline with label/value
  • KpiCard — KPI tile with a SparkContent slot
  • Chart — Full-featured charting for when a sparkline is not enough