View as Markdown

API reference: @salmonui/charts/sparkline

SparklineTextinterface

import type { SparklineText } from '@salmonui/charts/sparkline';
interface SparklineText {
    readonly summary: LocaleMessage;
    readonly noData: string;
    readonly up: string;
    readonly down: string;
    readonly flat: string;
}

Built-in text of a Sparkline (text prop; the sparkline entry of a LocaleProvider catalog).

SparklineText members (5)
NameSignatureDescription
summaryreadonly summary: LocaleMessage;

{count}, {min}, {max}, {first}, {last}, {trend}: the automatic summary of count points.

noDatareadonly noData: string;

The summary without data.

upreadonly up: string;

{trend} of the summary.

downreadonly down: string;
flatreadonly flat: string;