Skip to content

Commit 5fab62f

Browse files
authored
Merge pull request #663 from AppDevNext/setDrawMarkerViews
Allow set setDrawMarkerViews() with isDrawMarkersEnabled
2 parents 110fea9 + 1d3d1b6 commit 5fab62f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class BarChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelect
5050
binding.chart1.setOnChartValueSelectedListener(this)
5151
binding.chart1.setRoundedBarRadius(50f)
5252

53+
binding.chart1.setDrawMarkerViews(true)
5354
binding.chart1.isDrawBarShadow = false
5455
binding.chart1.isDrawValueAboveBar = true
5556

chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>> : ViewGroup, IBaseP
594594
* (use the setMarker(IMarker marker) method to specify a marker)
595595
*/
596596
var isDrawMarkersEnabled: Boolean = true
597-
protected set
598597

599598
/**
600599
* the view that represents the marker
@@ -984,7 +983,7 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>> : ViewGroup, IBaseP
984983
val isDrawMarkerViewsEnabled: Boolean
985984
get() = this.isDrawMarkersEnabled
986985

987-
@Deprecated("Use 'isDrawMarkersEnabled' directly")
986+
@Deprecated("Use 'isDrawMarkersEnabled' directly", ReplaceWith("isDrawMarkersEnabled = value"))
988987
fun setDrawMarkerViews(value: Boolean) {
989988
this.isDrawMarkersEnabled = value
990989
}

0 commit comments

Comments
 (0)