Smoothed Area
val xs = listOf(-3.0, -2.5, -2.0, -1.5, -1.0, 0.0, 1.0, 1.5, 2.0, 2.5, 3.0)
val ys = listOf(5.4, 1.2, 3.4, 0.1, 0.6, 2.1, 0.6, 2.2, 3.4, 4.5, 6.7)
plot {
statSmooth(xs, ys, smootherPointCount = 30) {
area {
x(Stat.x)
y(Stat.y)
borderLine {
color = Color.GREEN
width = 2.0
}
alpha = 0.6
fillColor = Color.LIGHT_GREEN
}
}
}
Last modified: 22 November 2023