YLabel
import { YLabel } from '@wick-charts/react'; <YLabel seriesId='btc'> {({ value, isLive, format }) => ( <span>{format(value)}{isLive ? "•" : ""}</span> )}</YLabel>Floating price badge anchored to the last data point of a series. Pulses with the data and animates value transitions via NumberFlow.
Floating price badge anchored to the last data point of a series. Pulses with the data and animates value transitions via NumberFlow.
Props
Render prop
// children: (ctx: YLabelRenderContext) => ReactNode<YLabel> {({ value, isLive, format }) => ( <span>{format(value)}{isLive ? "•" : ""}</span> )}</YLabel>