format

fun format(field: String, format: String): smoothLabels

Defines the format for displaying the value. The format will be applied to the corresponding value specified in the line template.

Parameters

field

Variable name to apply the format to. Variable names are specified without prefix or with a @ prefix.

format

A number format (e.g. ".4f") or a string template (e.g. "{.4f}").