Advertisement
Guest User

Untitled

a guest
Nov 10th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.25 KB | None | 0 0
  1. class MyAxisValueFormatter(values: Array<String?>) : IAxisValueFormatter {
  2.     private val values: Array<String?> = values
  3.  
  4.     override fun getFormattedValue(value: Float, axis: AxisBase?): String {
  5.         return this.values[value.toInt()].toString()
  6.     }
  7.  
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement