Skip to content

Commit a0a123f

Browse files
committed
Fix LineChart sample
1 parent efe1628 commit a0a123f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartActivity1.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class LineChartActivity1 : DemoBase(), OnSeekBarChangeListener, OnChartValueSele
164164
}
165165

166166
R.id.actionToggleFilled -> {
167-
binding.chart1.data?.dataSets?.let {
167+
binding.chart1.data?.dataSets?.forEach {
168168
val set = it as LineDataSet
169169
set.setDrawFilled(!set.isDrawFilledEnabled)
170170
binding.chart1.invalidate()

0 commit comments

Comments
 (0)