Joffrey
09/14/2023, 11:53 AMchart(data = props.simulation.monthlyPayments.seriesBreakdown()) {
title = "Monthly payments (${props.simulation.name})"
config {
config {
config {
val time = discrete({ domain.month }) { name = "Time" }
val value = quantitative({ domain.amount }) { name = "Amount" }
area(time, value)
}
}
events {
config {
selection {
series = discrete({ domain.type })
zoom {
selectionMode = SelectionMode.Disabled
}
}
zoomMode = ZoomMode.X
}
}
}
}
This could be prevented by creating an annotation to mark the charts DSL using `@DslMarker`:
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-dsl-marker/Joffrey
09/14/2023, 11:54 AMpmariac
09/14/2023, 1:20 PM