|
|
|
@ -8,11 +8,11 @@ import kotlin.math.roundToInt |
|
|
|
class LargeNumberFormatter : ValueFormatter() { |
|
|
|
class LargeNumberFormatter : ValueFormatter() { |
|
|
|
|
|
|
|
|
|
|
|
override fun getFormattedValue(value: Float): String { |
|
|
|
override fun getFormattedValue(value: Float): String { |
|
|
|
return value.kmbFormatted |
|
|
|
return value.kmbFormatted() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun getAxisLabel(value: Float, axis: AxisBase?): String { |
|
|
|
override fun getAxisLabel(value: Float, axis: AxisBase?): String { |
|
|
|
return value.roundToInt().kmbFormatted |
|
|
|
return value.roundToInt().kmbFormatted() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@ -20,11 +20,11 @@ class LargeNumberFormatter : ValueFormatter() { |
|
|
|
class HourFormatter : ValueFormatter() { |
|
|
|
class HourFormatter : ValueFormatter() { |
|
|
|
|
|
|
|
|
|
|
|
override fun getFormattedValue(value: Float): String { |
|
|
|
override fun getFormattedValue(value: Float): String { |
|
|
|
return value.kmbFormatted + "H" |
|
|
|
return value.kmbFormatted() + "H" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun getAxisLabel(value: Float, axis: AxisBase?): String { |
|
|
|
override fun getAxisLabel(value: Float, axis: AxisBase?): String { |
|
|
|
val test = value.kmbFormatted + "H" |
|
|
|
val test = value.kmbFormatted() + "H" |
|
|
|
return test |
|
|
|
return test |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|