Area Settings
val loadServer = dataFrameOf(
"time" to listOf("00:00", "03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "21:00"),
"load" to listOf(10, 5, 15, 50, 75, 60, 80, 40)
)
val time = column<String>("time")
val load = column<Int>("load")
loadServer.plot {
layout.title = "Daily Server Load Dynamics"
area {
x(time) { axis.name = "Time" }
y(load) {
axis.name = "Load (%)"
scale = continuous(0..100)
}
borderLine {
color = Color.ORANGE
type = LineType.DASHED
width = 2.5
}
fillColor = Color.RED
alpha = 0.7
}
}
val time = listOf("00:00", "03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "21:00")
val load = listOf(10, 5, 15, 50, 75, 60, 80, 40)
plot {
layout.title = "Daily Server Load Dynamics"
area {
x(time) { axis.name = "Time" }
y(load) { axis.name = "Load (%)" }
borderLine {
color = Color.ORANGE
type = LineType.DASHED
width = 2.5
}
fillColor = Color.RED
alpha = 0.7
}
}
Last modified: 22 November 2023