Package 

Class IndexAxisValueFormatter

  • All Implemented Interfaces:
    com.github.mikephil.charting.formatter.IAxisValueFormatter

    
    public class IndexAxisValueFormatter
     implements IAxisValueFormatter
                        

    This formatter is used for passing an array of x-axis labels, on whole x steps.

    • Constructor Detail

      • IndexAxisValueFormatter

        IndexAxisValueFormatter(Array<String> values)
        Constructor that specifies axis labels.
        Parameters:
        values - The values string array
      • IndexAxisValueFormatter

        IndexAxisValueFormatter(Collection<String> values)
        Constructor that specifies axis labels.
        Parameters:
        values - The values string array
    • Method Detail

      • getFormattedValue

         String getFormattedValue(Float value, AxisBase axis)

        Called when a value from an axis is to be formatted before being drawn. For performance reasons, avoid excessive calculations and memory allocations inside this method.

        Parameters:
        value - the value to be formatted
        axis - the axis the value belongs to