Nightingale Chart
val month by columnOf("Jan", "Feb", "Mar", "May", "Apr")
val amount by columnOf(34.4, 25.1, 33.6, 20.0, 15.9)
val df = dataFrameOf(month, amount)
df.plot {
pie {
slice(amount)
fillColor(month)
size(amount) {
scale = continuous(10.0..25.0)
legend.type = LegendType.None
}
}
layout {
style(Style.Void)
}
}
val month = listOf("Jan", "Feb", "Mar", "May", "Apr")
val amount = listOf(34.4, 25.1, 33.6, 20.0, 15.9)
plot {
pie {
slice(amount)
fillColor(month, "month")
size(amount) {
scale = continuous(10.0..25.0)
legend.type = LegendType.None
}
}
layout {
style(Style.Void)
}
}
Last modified: 05 August 2024