g3-toolkit API Reference
    Preparing search index...

    Interface StatsPanelProps

    interface StatsPanelProps {
        bins?: number;
        className?: string;
        description?: string;
        propertyKey: string;
        title?: string;
        ugm: UGM;
        unit?: string;
    }
    Index

    Properties

    bins?: number

    Number of histogram bins (default 20).

    className?: string
    description?: string

    One line under the title saying what a bar COUNTS. The y axis says "Count"; it does not say count of what, and for a derived property that is not recoverable from the chart.

    propertyKey: string

    Property key to plot (e.g., "pagerank", "score").

    title?: string

    Chart title. Defaults to Distribution: {propertyKey}, which names the raw key rather than anything a reader recognizes. For a DERIVED property the key is an implementation detail ("_shacl_maxSeverity"), so the host is the only party that can say what it means.

    ugm: UGM
    unit?: string

    Unit for the measured value, appended to the x-axis label and the tooltip ("ms", "kg", "%"). A bare histogram states a magnitude with no dimension.