From 7e506ecc486e4cf96de58cad6b889396e87fd9fb Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Wed, 31 Jul 2024 16:08:15 +0200 Subject: [PATCH] Move xAxis to bottom --- .../com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt index 3efcd1a5e..215c57644 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt @@ -17,6 +17,7 @@ import com.github.mikephil.charting.animation.Easing import com.github.mikephil.charting.components.Legend.LegendForm import com.github.mikephil.charting.components.LimitLine import com.github.mikephil.charting.components.LimitLine.LimitLabelPosition +import com.github.mikephil.charting.components.XAxis import com.github.mikephil.charting.data.Entry import com.github.mikephil.charting.data.LineDataSet import com.github.mikephil.charting.highlight.Highlight @@ -49,6 +50,7 @@ class LineChartActivity1 : DemoBase(), OnSeekBarChangeListener, OnChartValueSele // disable description text binding.chart1.description.isEnabled = false binding.chart1.legend.isEnabled = false + binding.chart1.xAxis.position = XAxis.XAxisPosition.BOTTOM // enable touch gestures binding.chart1.setTouchEnabled(true)