Skip to content

Commit 9c6f0e4

Browse files
committed
Move xAxis to bottom
1 parent 12e1ec5 commit 9c6f0e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import com.github.mikephil.charting.animation.Easing
1717
import com.github.mikephil.charting.components.Legend.LegendForm
1818
import com.github.mikephil.charting.components.LimitLine
1919
import com.github.mikephil.charting.components.LimitLine.LimitLabelPosition
20+
import com.github.mikephil.charting.components.XAxis
2021
import com.github.mikephil.charting.data.Entry
2122
import com.github.mikephil.charting.data.LineDataSet
2223
import com.github.mikephil.charting.highlight.Highlight
@@ -49,6 +50,7 @@ class LineChartActivity1 : DemoBase(), OnSeekBarChangeListener, OnChartValueSele
4950
// disable description text
5051
binding.chart1.description.isEnabled = false
5152
binding.chart1.legend.isEnabled = false
53+
binding.chart1.xAxis.position = XAxis.XAxisPosition.BOTTOM
5254

5355
// enable touch gestures
5456
binding.chart1.setTouchEnabled(true)

0 commit comments

Comments
 (0)