Tiles Settings
val dataset = dataFrameOf(
"store" to listOf("A", "B", "C", "A", "B", "C", "A", "B", "C"),
"time" to listOf(
"morning", "morning", "morning",
"afternoon", "afternoon", "afternoon",
"evening", "evening", "evening"
),
"money" to listOf(75, 64, 59, 82, 88, 91, 69, 77, 73)
)
dataset.plot {
tiles {
x("store")
y("time")
height = 0.7
borderLine {
width = 0.8
color = Color.BLACK
}
fillColor("money") {
scale = continuous(Color.RED..Color.GREEN)
}
alpha = 0.5
}
}
val store = listOf("A", "B", "C", "A", "B", "C", "A", "B", "C")
val time = listOf(
"morning", "morning", "morning",
"afternoon", "afternoon", "afternoon",
"evening", "evening", "evening"
)
val money = listOf(75, 64, 59, 82, 88, 91, 69, 77, 73)
plot {
tiles {
x(store)
y(time)
height = 0.7
borderLine {
width = 0.8
color = Color.BLACK
}
fillColor(money) {
scale = continuous(Color.RED..Color.GREEN)
}
alpha = 0.5
}
}
Last modified: 06 December 2023