Skip to content

Commit 941e1ea

Browse files
authored
Merge pull request #584 from AppDevNext/UtilsKotlin
Utils Kotlin
2 parents 48f3068 + d4558ae commit 941e1ea

File tree

4 files changed

+335
-331
lines changed

4 files changed

+335
-331
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/data/BaseDataSet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ abstract class BaseDataSet<T : Entry>() : IDataSet<T> {
255255

256256
override var valueFormatter: IValueFormatter
257257
get() = if (needsFormatter())
258-
Utils.getDefaultValueFormatter()
258+
Utils.defaultValueFormatter
259259
else
260260
mValueFormatter!!
261261
set(value) {

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/XAxisRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ open class XAxisRenderer(
222222
}
223223

224224
protected fun drawLabel(canvas: Canvas, formattedLabel: String?, x: Float, y: Float, anchor: MPPointF, angleDegrees: Float) {
225-
Utils.drawXAxisValue(canvas, formattedLabel, x, y, paintAxisLabels, anchor, angleDegrees)
225+
formattedLabel?.let { Utils.drawXAxisValue(canvas, it, x, y, paintAxisLabels, anchor, angleDegrees) }
226226
}
227227

228228
protected open var renderGridLinesPath: Path = Path()

MPChartLib/src/main/java/com/github/mikephil/charting/utils/Utils.java

Lines changed: 0 additions & 329 deletions
This file was deleted.

0 commit comments

Comments
 (0)