Package io.data2viz.charts.chart

Types

Chart
Link copied to clipboard
common
interface Chart<DOMAIN> : EventListener<DOMAIN> , ChartController<DOMAIN>
The Chart class is the main entry point when creating a chart, use the VizContainer.chart function to create one.
Legend
Link copied to clipboard
common
interface Legend<DOMAIN>
The Chart legend visual component.
MarkCreator
Link copied to clipboard
common
typealias MarkCreator<DOMAIN> = () -> Mark<DOMAIN>

MarkCreator is simply a name for a lambda that instantiates a Mark when called.

Tooltip
Link copied to clipboard
common
interface Tooltip<DOMAIN>
The Chart tooltip visual component.

Functions

chart
Link copied to clipboard
common
fun <DOMAIN> VizContainer.chart(data: List<DOMAIN>, config: ChartConfig = configuration { }, init: Chart<DOMAIN>.() -> Unit): Chart<DOMAIN>
Builds a Chart using this VizContainer.
constant
Link copied to clipboard
common
fun <DOMAIN, VALUE> Chart<DOMAIN>.constant(constantValue: VALUE, init: Constant<DOMAIN, VALUE>.() -> Unit = {}): Constant<DOMAIN, VALUE>
Create a Constant dimension for the Chart.
discrete
Link copied to clipboard
common
fun <DOMAIN, VALUE> Chart<DOMAIN>.discrete(accessor: Datum<DOMAIN>.() -> VALUE, init: Discrete<DOMAIN, VALUE>.() -> Unit = {}): Discrete<DOMAIN, VALUE>
Create a Discrete dimension for the Chart.
quantitative
Link copied to clipboard
common
fun <DOMAIN> Chart<DOMAIN>.quantitative(accessor: Datum<DOMAIN>.() -> Double?, init: Quantitative<DOMAIN>.() -> Unit = {}): Quantitative<DOMAIN>
Create a Quantitative dimension for the Chart.
temporal
Link copied to clipboard
common
fun <DOMAIN> Chart<DOMAIN>.temporal(accessor: Datum<DOMAIN>.() -> Instant, init: Temporal<DOMAIN>.() -> Unit = {}): Temporal<DOMAIN>
Create a Temporal dimension for the Chart.