base
of the Waterfall Plot¶%useLatestDescriptors
%use lets-plot
val dataMap = mapOf(
"Accounts" to listOf("Product revenue", "Services revenue", "Fixed costs", "Variable costs"),
"Values" to listOf(830_000, 290_000, -360_000, -150_000),
)
waterfallPlot(dataMap, "Accounts", "Values", hline = elementLine()) + themeMinimal()
val prevPeriodTotal = 400_000
waterfallPlot(dataMap, "Accounts", "Values", base = prevPeriodTotal, hline = elementLine()) + themeMinimal()