kandy 0.7.0 Help

Functional Bar Plot

val xs = (-80..80).map { it.toDouble() / 8.0 } val function = { x: Double -> sin(x / 1.5) } val ys = xs.map(function) plot { bars { x(xs) y(ys) } }
Functional Bar Plot
Last modified: 22 November 2023