Skip to content

Commit f47797d

Browse files
committed
Property access highLightColor
1 parent 7028a02 commit f47797d

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/data/BarLineScatterCandleBubbleDataSet.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBub
66
/**
77
* Baseclass of all DataSets for Bar-, Line-, Scatter- and CandleStickChart.
88
*/
9+
910
abstract class BarLineScatterCandleBubbleDataSet<T : Entry>(yVals: MutableList<T?>?, label: String?) :
1011
DataSet<T>(yVals, label), IBarLineScatterCandleBubbleDataSet<T> {
1112
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class CubicLineChartActivity : DemoBase(), OnSeekBarChangeListener {
118118
set1.setLineWidth(1.8f)
119119
set1.circleRadius = 4f
120120
set1.setCircleColor(Color.WHITE)
121-
set1.setHighLightColor(Color.rgb(244, 117, 117))
121+
set1.highLightColor = Color.rgb(244, 117, 117)
122122
set1.color = Color.WHITE
123123
set1.setFillColor(Color.WHITE)
124124
set1.setFillAlpha(100)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class DynamicalAddingActivity : DemoBase(), OnChartValueSelectedListener {
122122

123123
set.color = color
124124
set.setCircleColor(color)
125-
set.setHighLightColor(color)
125+
set.highLightColor = color
126126
set.valueTextSize = 10f
127127
set.setSingleValueTextColor(color)
128128

@@ -150,7 +150,7 @@ class DynamicalAddingActivity : DemoBase(), OnChartValueSelectedListener {
150150
set.circleRadius = 4.5f
151151
set.color = Color.rgb(240, 99, 99)
152152
set.setCircleColor(Color.rgb(240, 99, 99))
153-
set.setHighLightColor(Color.rgb(190, 190, 190))
153+
set.highLightColor = Color.rgb(190, 190, 190)
154154
set.axisDependency = AxisDependency.LEFT
155155
set.valueTextSize = 10f
156156

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class FilledLineActivity : DemoBase() {
108108
set1.setFillAlpha(255)
109109
set1.setDrawFilled(true)
110110
set1.setFillColor(Color.WHITE)
111-
set1.setHighLightColor(Color.rgb(244, 117, 117))
111+
set1.highLightColor = Color.rgb(244, 117, 117)
112112
set1.setDrawCircleHole(false)
113113
set1.fillFormatter = object : IFillFormatter {
114114
override fun getFillLinePosition(dataSet: ILineDataSet?, dataProvider: LineDataProvider?): Float {
@@ -129,7 +129,7 @@ class FilledLineActivity : DemoBase() {
129129
set2.setDrawFilled(true)
130130
set2.setFillColor(Color.WHITE)
131131
set2.setDrawCircleHole(false)
132-
set2.setHighLightColor(Color.rgb(244, 117, 117))
132+
set2.highLightColor = Color.rgb(244, 117, 117)
133133
set2.fillFormatter = object : IFillFormatter {
134134
override fun getFillLinePosition(dataSet: ILineDataSet?, dataProvider: LineDataProvider?): Float {
135135
// change the return value here to better understand the effect

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class LineChartActivityColored : DemoBase() {
110110
set1.circleHoleRadius = 2.5f
111111
set1.color = Color.WHITE
112112
set1.setCircleColor(Color.WHITE)
113-
set1.setHighLightColor(Color.WHITE)
113+
set1.highLightColor = Color.WHITE
114114
set1.isDrawValues = false
115115

116116
// create a data object with the data sets

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class LineChartDualAxisActivity : DemoBase(), OnSeekBarChangeListener, OnChartVa
169169
set1.circleRadius = 3f
170170
set1.setFillAlpha(65)
171171
set1.setFillColor(ColorTemplate.getHoloBlue())
172-
set1.setHighLightColor(Color.rgb(244, 117, 117))
172+
set1.highLightColor = Color.rgb(244, 117, 117)
173173
set1.setDrawCircleHole(false)
174174

175175
//set1.setFillFormatter(new MyFillFormatter(0f));
@@ -187,7 +187,7 @@ class LineChartDualAxisActivity : DemoBase(), OnSeekBarChangeListener, OnChartVa
187187
set2.setFillAlpha(65)
188188
set2.setFillColor(Color.BLUE)
189189
set2.setDrawCircleHole(false)
190-
set2.setHighLightColor(Color.rgb(244, 117, 117))
190+
set2.highLightColor = Color.rgb(244, 117, 117)
191191

192192
//set2.setFillFormatter(new MyFillFormatter(900f));
193193
set3 = LineDataSet(values3, "DataSet 3")
@@ -199,7 +199,7 @@ class LineChartDualAxisActivity : DemoBase(), OnSeekBarChangeListener, OnChartVa
199199
set3.setFillAlpha(65)
200200
set3.setFillColor(ColorTemplate.colorWithAlpha(Color.YELLOW, 200))
201201
set3.setDrawCircleHole(false)
202-
set3.setHighLightColor(Color.rgb(244, 117, 117))
202+
set3.highLightColor = Color.rgb(244, 117, 117)
203203

204204
// create a data object with the data sets
205205
val data = LineData(set1, set2, set3)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class LineChartTimeActivity : DemoBase(), OnSeekBarChangeListener {
137137
set1.isDrawValues = false
138138
set1.setFillAlpha(65)
139139
set1.setFillColor(ColorTemplate.getHoloBlue())
140-
set1.setHighLightColor(Color.rgb(244, 117, 117))
140+
set1.highLightColor = Color.rgb(244, 117, 117)
141141
set1.setDrawCircleHole(false)
142142

143143
// create a data object with the data sets

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ListViewMultiChartActivity : DemoBase() {
9191
val d1 = LineDataSet(values1, "New DataSet $cnt, (1)")
9292
d1.setLineWidth(2.5f)
9393
d1.circleRadius = 4.5f
94-
d1.setHighLightColor(Color.rgb(244, 117, 117))
94+
d1.highLightColor = Color.rgb(244, 117, 117)
9595
d1.isDrawValues = false
9696

9797
val values2 = ArrayList<Entry?>()
@@ -103,7 +103,7 @@ class ListViewMultiChartActivity : DemoBase() {
103103
val d2 = LineDataSet(values2, "New DataSet $cnt, (2)")
104104
d2.setLineWidth(2.5f)
105105
d2.circleRadius = 4.5f
106-
d2.setHighLightColor(Color.rgb(244, 117, 117))
106+
d2.highLightColor = Color.rgb(244, 117, 117)
107107
d2.color = ColorTemplate.VORDIPLOM_COLORS[0]
108108
d2.setCircleColor(ColorTemplate.VORDIPLOM_COLORS[0])
109109
d2.isDrawValues = false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class RealtimeLineChartActivity : DemoBase(), OnChartValueSelectedListener {
125125
set.circleRadius = 4f
126126
set.setFillAlpha(65)
127127
set.setFillColor(ColorTemplate.getHoloBlue())
128-
set.setHighLightColor(Color.rgb(244, 117, 117))
128+
set.highLightColor = Color.rgb(244, 117, 117)
129129
set.setSingleValueTextColor(Color.WHITE)
130130
set.valueTextSize = 9f
131131
set.isDrawValues = false

0 commit comments

Comments
 (0)