Draws immediately, set this True when using sub-surfaces for proper data label layering
When set, this provider's labels are drawn immediately after generation (during the series draw), clipped to the returned rect (surface coordinates), instead of in the deferred global text pass. See IBaseDataLabelProviderOptions.getClipRect
If this is set it will be used to get text values from metaData, rather than formatting y values. The selector will be called even if the metaData for an index is undefined.
The Parent RenderableSeries
Reusable native text-bounds buffer, allocated once at attach time. Hoisted here so allocation never happens on the render path — first-time native allocation can grow the WASM heap and detach any Float64Array views captured earlier in the same frame (e.g. inside a DataLabelState).
The SciChart 2D WebAssembly Context containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
Gets or sets the color for data labels. Defaults to axis label color
Gets or sets the color for data labels. Defaults to axis label color
Flag to enable/disable dataLabel generation. Default true
Flag to enable/disable dataLabel generation. Default true
Gets or sets the number of rows of data labels. Default 10
Gets or sets the number of rows of data labels. Default 10
Gets or sets numeric format to use when formatting values to text. For a list of values, see ENumericFormat For more control, override getText
Gets or sets numeric format to use when formatting values to text. For a list of values, see ENumericFormat For more control, override getText
Gets or sets the precision to use when formatting values to text For more control, override getText
Gets or sets the precision to use when formatting values to text For more control, override getText
Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
Gets or sets the text style used for data labels. The style must be set, with fontFamily and fontSize set, in order for text to be drawn.
Draws this provider's labels immediately, clipped to the given rect (surface coordinates). Pre-flushes any pending font batches under the state they expect (identity transform + surface clip) so the clip cannot apply to text batched by others, then sets the label clip and force-ends the font so the clip applies to exactly this provider's labels, then restores the seriesViewRect transform + clip.
Called when a DataLabelProvider is attached to a parent RenderableSeries
Resolves the declared EColumnType of the data-series column whose values this provider
is turning into text, or undefined when there is none. Supplies the formatting DEFAULT that an
unset numericFormat/precision (or labelFormat/labelPrecision) falls back to — see
DEFAULT_FORMAT_FOR_COLUMN_TYPE. An explicit setting always wins over it.
getColumnType is optional-called as a CAPABILITY, matching how getTextAt is reached on this
path: any DataSeries able to declare column types serves one, and anything else (a plain
XyDataSeries, a third-party IDataSeries) simply falls through to the class default.
the renderable series the labels are being drawn for
the column the provider was explicitly pointed at (a name, or an index into
valueNames), or undefined to use the series' own y selection
Update the style. Only the properties passed will be updated
Generated using TypeDoc
The text to draw, along with the sizes and positions. Usually generated, but can be updated before final drawing