diff --git a/app/src/main/kotlin/info/appdev/chartexample/LineChartActivity.kt b/app/src/main/kotlin/info/appdev/chartexample/LineChartActivity.kt index 69feb056b..51d3e248b 100644 --- a/app/src/main/kotlin/info/appdev/chartexample/LineChartActivity.kt +++ b/app/src/main/kotlin/info/appdev/chartexample/LineChartActivity.kt @@ -24,6 +24,7 @@ import info.appdev.chartexample.DataTools.Companion.setData import info.appdev.chartexample.custom.MyMarkerView import info.appdev.chartexample.databinding.ActivityLinechartBinding import info.appdev.chartexample.notimportant.DemoBase +import info.appdev.charting.components.XAxis import timber.log.Timber /** @@ -37,7 +38,7 @@ class LineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelec super.onCreate(savedInstanceState) binding = ActivityLinechartBinding.inflate(layoutInflater) setContentView(binding.root) - + binding.seekBarX.setOnSeekBarChangeListener(this) binding.seekBarY.max = 180 binding.seekBarY.setOnSeekBarChangeListener(this) @@ -47,6 +48,8 @@ class LineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelec // 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)