Skip to content

Commit

Permalink
Move xAxis to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jul 31, 2024
1 parent 2b34b34 commit 69b8488
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 69b8488

Please sign in to comment.