Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BarChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelect
binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.setRoundedBarRadius(50f)

binding.chart1.setDrawMarkerViews(true)
binding.chart1.isDrawMarkersEnabled = true
binding.chart1.isDrawBarShadow = false
binding.chart1.isDrawValueAboveBar = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ class TimeLineActivity : DemoBase() {
withContext(Dispatchers.Default) {
while (menuItemMove!!.isChecked) {
withContext(Dispatchers.Main) {
binding.chart1.lineData.dataSets.get(0)?.let { set ->
(set as LineDataSet).entries.moveFirstToLast()
set.notifyDataChanged()
binding.chart1.lineData.dataSets[0].apply {
(this as LineDataSet).entries.moveFirstToLast()
this.notifyDataChanged()
binding.chart1.lineData.notifyDataChanged()
binding.chart1.notifyDataSetChanged()
binding.chart1.invalidate()
Expand Down
Loading