bar

fun <DOMAIN, YVAL> Chart<DOMAIN>.bar(x: Quantitative<DOMAIN>, y: Discrete<DOMAIN, YVAL>, init: BarMark<DOMAIN, Double?, YVAL>.() -> Unit = {})

Add a horizontal BarMark to the current Chart.

Parameters

init

The initialization lambda for this Mark

x

The Quantitative for the X axis

y

The Discrete for the Y axis

fun <DOMAIN, XVAL> Chart<DOMAIN>.bar(x: Discrete<DOMAIN, XVAL>, y: Quantitative<DOMAIN>, init: BarMark<DOMAIN, XVAL, Double?>.() -> Unit = {})

Add a vertical BarMark to the current Chart.

Parameters

init

The initialization lambda for this Mark

x

The Discrete for the X axis

y

The Quantitative for the Y axis