What a host needs to render a menu over one price axis: which items are on, and which of them mean anything on this axis. See Chart.priceAxisState.

interface PriceAxisState {
    active: boolean;
    autoFit: boolean;
    inverted: boolean;
    lockRatio: boolean;
    mode: PriceScaleMode;
    movable: boolean;
    paneIndex: number;
    scaled: boolean;
    scaleId: PriceScaleId;
    side: "left" | "right";
}

Properties

active: boolean

Some series on the pane maps to this scale.

autoFit: boolean

Auto-fit: the range tracks the data rather than staying where it was put.

inverted: boolean
lockRatio: boolean
movable: boolean

Whether movePriceAxis would do anything: something to move, and a free side.

paneIndex: number
scaled: boolean

False while the scale still sits on its 0..1 placeholder (nothing measured).

scaleId: PriceScaleId
side: "left" | "right"

Strip this scale is drawn in. The overlay scale reports 'right' and draws none.