Skip to content

Commit 59eb83d

Browse files
committed
Move xAxis to bottom
1 parent 7f7f6a6 commit 59eb83d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import info.appdev.chartexample.DataTools.Companion.setData
2424
import info.appdev.chartexample.custom.MyMarkerView
2525
import info.appdev.chartexample.databinding.ActivityLinechartBinding
2626
import info.appdev.chartexample.notimportant.DemoBase
27+
import info.appdev.charting.components.XAxis
2728
import timber.log.Timber
2829

2930
/**
@@ -48,6 +49,7 @@ class LineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelec
4849
// disable description text
4950
binding.chart1.description.isEnabled = false
5051
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)