File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/src/main/kotlin/info/appdev/chartexample
chartLib/src/main/kotlin/info/appdev/charting/renderer Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ class LineChartActivityColored : DemoBase() {
9595 chart.animateX(2500 )
9696 }
9797
98+ @Suppress(" SameParameterValue" )
9899 private fun getData (range : Float ): LineData {
99100 val count = 36
100101 val values = ArrayList <Entry >()
Original file line number Diff line number Diff line change @@ -491,10 +491,11 @@ open class LineChartRenderer(
491491
492492 val trans = dataProvider.getTransformer(dataSet.axisDependency)
493493
494- // make sure the values do not interfear with the circles
494+ // make sure the values do not interfere with the circles
495495 var valOffset = (dataSet.circleRadius * 1.75f ).toInt()
496496
497- if (! dataSet.isDrawCirclesEnabled) valOffset = valOffset / 2
497+ if (! dataSet.isDrawCirclesEnabled)
498+ valOffset / = 2
498499
499500 xBounds.set(dataProvider, dataSet)
500501
@@ -534,7 +535,7 @@ open class LineChartRenderer(
534535
535536 icon?.let {
536537 canvas.drawImage(
537- it ,
538+ icon ,
538539 (x + iconsOffset.x).toInt(),
539540 (y + iconsOffset.y).toInt()
540541 )
You can’t perform that action at this time.
0 commit comments