When to use it
Use canonical visualization tokens and keep the application data model explicit. Provide a concise factual label, and retain the readable native fallback supplied by the component.
Render a compact tokenized trend line with optional area fill.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use canonical visualization tokens and keep the application data model explicit. Provide a concise factual label, and retain the readable native fallback supplied by the component.
LumenSparkline(
label: "Quarterly revenue",
values: [12, 18, 15, 24]
)Reference
The primary shared and platform-specific options exposed by LumenSparkline.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | String | Required | Provides the concise accessible name for the visualization. |
| values | Typed native chart data | Required | Supplies finite values and stable identifiers through the shared chart contract. |
Native behavior
Use canonical visualization tokens and keep the application data model explicit. Provide a concise factual label, and retain the readable native fallback supplied by the component.
Presents one concise image label without exposing decorative marks.
Shared component