DecimalFormatValueFormatter

A ValueFormatter implementation that formats values using a DecimalFormat with a given pattern.

Inheritors

Constructors

Link copied to clipboard
constructor()

Creates a DecimalFormatValueFormatter using the default pattern.

constructor(pattern: String, roundingMode: RoundingMode = RoundingMode.HALF_UP)

Creates a DecimalFormatValueFormatter that will format values based on the given pattern and roundingMode.

constructor(decimalFormat: DecimalFormat)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun formatValue(value: Float, chartValues: ChartValues): String

Called to format axis labels and data labels.