ChemPal Documentation - v1.6.0
    Preparing search index...

    Module components/SearchPanel/PriceTrendGraph

    Functions - Components

    PriceSparkline

    Inline SVG sparkline of a price series. Points are spaced evenly by index and scaled to the series' own min/max. Renders nothing for a series too short to draw a line (fewer than two points).

    PriceTrend

    Compact trend indicator: a colored glyph plus the signed delta and percent change since the previous recorded price. Rising prices read red, drops read green. Renders nothing when there aren't two points to compare.

    Functions - Helpers

    formatUsd

    Format a USD amount for display in the user's currency, reusing the same conversion the results table applies so history values match the table.

    Type Aliases

    PriceHistorySettings

    The user settings the price-history views read to convert USD for display.

    Variables

    TREND_COLOR

    MUI theme color token per trend direction (rising price = bad = red).

    TREND_GLYPH

    Glyph per trend direction.