Called when a value (from labels inside the chart) is formatted before being drawn. For performance reasons, avoid excessive calculations and memory allocations inside this method.
the value to be formatted
the entry the value belongs to - in e.g. BarChart, this is of class BarEntry
index of the drawn value
total number of values drawn (useful to draw first or last)
the index of the DataSet the entry in focus belongs to
provides information about the current chart state (scale, translation, ...)
the formatted label ready for being drawn
Interface to format all values before they are drawn as labels.
Extend ValueFormatter instead