kandy 0.7.0 Help

Histogram With Line

val random = java.util.Random(42) val sampleDf = dataFrameOf( "sample" to List(1000) { random.nextGaussian() } ) sampleDf.plot { statBin("sample", binsOption = BinsOption.byNumber(15)) { bars { alpha = 0.9 x(Stat.x) y(Stat.count) } line { x(Stat.x) y(Stat.count) color = Color.RED width = 1.5 type = LineType.LONGDASH } } }
val random = java.util.Random(42) val sample = List(1000) { random.nextGaussian() } plot { statBin(sample, binsOption = BinsOption.byNumber(15)) { bars { alpha = 0.9 x(Stat.x) y(Stat.count) } line { x(Stat.x) y(Stat.count) color = Color.RED width = 1.5 type = LineType.LONGDASH } } }
Histogram With Line
Last modified: 30 November 2023