@pond-ts/charts API Reference
    Preparing search index...

    Function YAxisIndicator

    • A value pill pinned to a y-axis edge — the ChartIQ / Yahoo-Finance live price tag. Positions at yScale(value) on the linked axis and renders a chip (the solid axisPillStyle pill) at the plot's side edge, optionally with a dashed guide line across the plot.

      Render it as a child of <Layers> (alongside the chart layers), so it shares the plot's coordinate space:

      <Layers>
      <LineChart series={price} axis="usd" />
      <YAxisIndicator source={liveLast} axis="usd" color="#4af" format=",.2f" line />
      </Layers>

      The value is decoupled from the series' last point — feed it whatever the live feed reports. For high-frequency updates pass a LiveValue (source); .set() repaints only the pill.

      Parameters

      Returns Element | null