Skip to content

Commit 96debac

Browse files
committed
Move xAxis to bottom
1 parent 69ab516 commit 96debac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/kotlin/info/appdev/chartexample/LineChartActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import info.appdev.charting.components.Legend.LegendForm
2020
import info.appdev.charting.components.LimitLine
2121
import info.appdev.charting.components.LimitLine.LimitLabelPosition
2222
import info.appdev.charting.components.LimitRange
23+
import info.appdev.charting.components.XAxis
2324
import info.appdev.charting.data.Entry
2425
import info.appdev.charting.data.LineDataSet
2526
import info.appdev.charting.highlight.Highlight
@@ -47,7 +48,8 @@ class LineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelec
4748

4849
// disable description text
4950
binding.chart1.description.isEnabled = false
50-
binding.chart1.legend?.isEnabled = false
51+
binding.chart1.legend.isEnabled = false
52+
binding.chart1.xAxis.position = XAxis.XAxisPosition.BOTTOM
5153

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

0 commit comments

Comments
 (0)