fcharts-js - v0.3.0
    Preparing search index...

    Interface SparklineOptions

    interface SparklineOptions {
        area?: boolean;
        baseline?: number;
        color?: string;
        colorByTrend?: boolean;
        formatDelta?: (deltaPct: number) => string;
        height: number;
        label?: string;
        showDelta?: boolean;
        theme?: Partial<SvgTheme>;
        width: number;
    }
    Index

    Properties

    area?: boolean

    Fill the area under the line. Default false.

    baseline?: number

    Draw a horizontal reference rule at this value.

    color?: string

    Line color. Default: a neutral blue (use colorByTrend to color by direction instead).

    colorByTrend?: boolean

    Color the line green/red/gray by overall direction (last vs first). Default false.

    formatDelta?: (deltaPct: number) => string

    Format the delta label value. Default: signed, 1 decimal.

    height: number
    label?: string

    Accessible-label prefix. Default 'Trend'.

    showDelta?: boolean

    Append the last-vs-first delta as a colored label to the right. Default false.

    theme?: Partial<SvgTheme>
    width: number