Selection

open class Selection<E : Element, D>(val groups: List<Group<E, D>>)

Inheritors

Constructors

Link copied to clipboard
constructor(groups: List<Group<E, D>>)

Properties

Link copied to clipboard
val groups: List<Group<E, D>>

Functions

Link copied to clipboard
inline fun <E1 : Element, E2 : Element, D> Selection<E1, D>.append(crossinline value: E1.(Arguments<D, E1?>) -> E2): Selection<E2, D>

See analogous d3 function.

Link copied to clipboard
fun <E : Element, D1, D2> Selection<E, D1>.data(value: (index: Int, group: Group<E, D1>) -> List<D2>): UpdateSelection<E, D2>
fun <E : Element, D1, D2> Selection<E, D1>.data(value: List<D2>): UpdateSelection<E, D2>

See analogous d3 function.

Link copied to clipboard
inline fun <E : Element, D> Selection<E, D>.filter(crossinline filter: E.(Arguments<D, E?>) -> Boolean): Selection<E, D>
Link copied to clipboard
fun <E1 : Element, E2 : Element, D> Selection<E1, D>.insert(builder: ElementBuilder<E2>, before: ElementSelector<*>): Selection<E2, D>
inline fun <E1 : Element, E2 : Element, D> Selection<E1, D>.insert(crossinline value: E1.(Arguments<D, E1?>) -> E2, before: ElementSelector<*>): Selection<E2, D>

See analogous d3 function.

Link copied to clipboard
fun <E : Element, D1, D2> Selection<E, D1>.keyedData(value: (index: Int, group: Group<E, D1>) -> List<D2>, key: Element?.(Arguments<Any?, Any?>) -> Any?): UpdateSelection<E, D2>
fun <E : Element, D1, D2> Selection<E, D1>.keyedData(value: List<D2>, key: Element?.(Arguments<Any?, Any?>) -> Any?): UpdateSelection<E, D2>

See analogous d3 function.

Link copied to clipboard
fun <E : Element, D> Selection<E, D>.merge(other: Selection<E, D>): Selection<E, D>

See analogous d3 function.

Link copied to clipboard
inline fun <E1 : Element, E2 : Element, D> Selection<E1, D>.select(crossinline select: E1.(Arguments<D, E1?>) -> E2?): Selection<E2, D>

See analogous d3 function.

Link copied to clipboard
inline fun <E1 : Element, E2 : Element, D> Selection<E1, D>.selectAll(crossinline select: E1.(Arguments<D, E1?>) -> Sequence<E2>): Selection<E2, D>

See analogous d3 function.