Function lastPriceLevelFromSeriesStyle

  • The last-price level as the series style already expresses it.

    That level is not duplicated here: priceLineVisible and lastValueVisible are exactly this family's line and label under older names, and the pane draws them. These two functions are the translation, so a host can present the last price in the same shape as every other level and write the answer back to the series it belongs to.

    Parameters

    • style: Pick<SeriesStyle, "priceLineVisible" | "lastValueVisible">

    Returns Pick<PriceLevelStyle, "line" | "label">