chart

fun <DOMAIN> VizContainer.chart(data: List<DOMAIN>, config: ChartConfig = configuration { }, init: Chart<DOMAIN>.() -> Unit): Chart<DOMAIN>

Builds a Chart using this VizContainer.

Parameters

config

A configuration instance that will be copied for the current chart.

data

The original collection of DOMAIN objects.

init

The initialization lambda that will be applied to the Chart, this is where all the magic happens!