PercentageFormatValueFormatter

A ValueFormatter implementation that converts y-axis values to percentages. It uses DecimalFormat to format values.

Parameters

pattern

the pattern used by DecimalFormat to format values as percentages.

Inheritors

Constructors

Link copied to clipboard
constructor()

Creates a PercentageFormatValueFormatter using the default percentage pattern.

constructor(pattern: String)

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.