@rekurt/openkline - v0.2.0
    Preparing search index...

    Interface CompareSeries

    One symbol overlaid on the chart in compare mode.

    points must be sorted ascending by time (t, Unix seconds, matching the main series). value is the symbol's close price at that time. The series' timestamps need NOT line up with the main chart's bars — they are aligned to the X axis by time (viewport.timeToX), interpolating between main-series bars as needed.

    interface CompareSeries {
        color: string;
        id: string;
        label?: string;
        normalization?: CompareNormalization;
        points: { t: number; value: number }[];
    }
    Index

    Properties

    color: string

    Line color (any CSS color string).

    id: string

    Stable identifier (used to build the primitive id and for remove/list).

    label?: string

    Optional human label (e.g. the symbol name). Not drawn by the primitive.

    normalization?: CompareNormalization

    Normalization mode. Defaults to 'percentage'.

    points: { t: number; value: number }[]

    Close-price points, ascending by time.