Lumeo

Charts

Beautiful charts built on Apache ECharts. Lumeo includes 30 chart components for every visualization need, from basic bar charts to advanced geographic maps and word clouds.

Installation

dotnet add package Lumeo.Charts

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

Usage

@using Lumeo

<Chart />

Accessibility

ECharts paints to a <canvas>, which is invisible to screen readers. Every Lumeo chart therefore ships an accessibility layer (on by default, shadcn accessibilityLayer parity): the canvas host becomes keyboard-focusable with an aria-label summarising the data, and a visually-hidden but screen-reader-navigable <table> is generated from the series. Tab to the chart below, or inspect the DOM to see the hidden table. Set AccessibilityLayer="false" to opt out.

Bar chart with 4 categories: Revenue.
CategoryRevenue
Jan42
Feb58
Mar51
Apr67

Toggle it off and inspect the DOM: the generated screen-reader table plus the host's tabindex and aria-label are removed.

API Reference

Every typed chart (BarChart, LineChart, …) wraps the underlying Chart primitive documented below and forwards its loading/theming/event parameters through. See each chart type's own page (under /components/charts/*) for its data-shaping parameters (Categories, Series, etc.).

Chart

ChartThreshold

Declarative threshold line — a horizontal (default) or vertical marker at a given value. Place inside any typed chart's ChildContent; it renders nothing visible itself and instead registers a markLine entry on the underlying option.

ChartReferenceZone

Declarative reference band — a shaded rectangle between two values on one axis, spanning the full extent of the other. Wraps ECharts' native markArea.

ChartTooltip

Declarative tooltip body for any chart wrapper. The child fragment is given a ChartTooltipContext on every hover and is rendered into a hidden DOM portal that ECharts' tooltip formatter pulls its innerHTML from — use this when you need real Razor markup (themed cards, formatted numbers, child components) instead of ECharts' raw formatter string.

ChartSkeleton

The legacy SVG overlay skeleton used by SkeletonStyle="ChartSkeletonStyle.Silhouette". Can also be rendered standalone as a static loading placeholder.

Typed chart wrapper common props

Every typed chart (BarChart, LineChart, and the rest of the 30 chart types) exposes this parameter alongside its own data-shaping props:

Prop Type Default Description
OptionOverrideDictionary<string, object>?nullEscape hatch: entries are merged into the generated EChartOption's extension data, letting you set any raw ECharts option key the typed wrapper doesn't expose a dedicated parameter for.