We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164c7c2 commit 98d5750Copy full SHA for 98d5750
app/src/main/kotlin/info/appdev/chartexample/FilledLineActivity.kt
@@ -74,13 +74,23 @@ class FilledLineActivity : DemoBase() {
74
75
for (i in 0..<count) {
76
val valueY = (sampleValues[i]!!.toFloat() * range) + 50
77
+ if (count / 2 == i) {
78
+ // Simulate a gap in the data
79
+ valuesArray1.add(null)
80
+ continue
81
+ }
82
valuesArray1.add(Entry(i.toFloat(), valueY))
83
}
84
85
val valuesArray2 = ArrayList<Entry?>()
86
87
88
val valueY = (sampleValues[i + 1]!!.toFloat() * range) + 450
89
+ if (count / 4 == i) {
90
91
+ valuesArray2.add(null)
92
93
94
valuesArray2.add(Entry(i.toFloat(), valueY))
95
96
0 commit comments