Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object InstantTicker : Ticker<Instant>
Link copied to clipboard
object LocalDateTimeTicker : Ticker<LocalDateTime>
Link copied to clipboard
interface Scale<D, R>

Maps values from a Domain to a Range.

Link copied to clipboard
fun interface Ticker<T>

Functions

Link copied to clipboard
fun <R> ContinuousScale<*, R>.domain(vararg domain: Instant): ContinuousScale<Instant, R>
fun <R> ContinuousScale<*, R>.domain(vararg domain: LocalDateTime): ContinuousScale<LocalDateTime, R>
fun <R> ContinuousScale<*, R>.domain(vararg domain: Double): ContinuousScale<Double, R>
fun <R> ContinuousScale<*, R>.domain(vararg domain: Float): ContinuousScale<Float, R>
fun <R> ContinuousScale<*, R>.domain(vararg domain: Int): ContinuousScale<Int, R>
@JvmName(name = "domainDouble")
fun <R> ContinuousScale<*, R>.domain(domain: Iterable<Double>): ContinuousScale<Double, R>
@JvmName(name = "domainFloat")
fun <R> ContinuousScale<*, R>.domain(domain: Iterable<Float>): ContinuousScale<Float, R>
@JvmName(name = "domainInt")
fun <R> ContinuousScale<*, R>.domain(domain: Iterable<Int>): ContinuousScale<Int, R>
@JvmName(name = "domainInstant")
fun <R> ContinuousScale<*, R>.domain(domain: Iterable<Instant>): ContinuousScale<Instant, R>
@JvmName(name = "domainLocalDateTime")
fun <R> ContinuousScale<*, R>.domain(domain: Iterable<LocalDateTime>): ContinuousScale<LocalDateTime, R>
Link copied to clipboard
inline fun <I, O : Comparable<O>> Iterable<I>.extent(crossinline selector: (I) -> O?): Iterable<O>
Link copied to clipboard
operator fun <D, R> Scale<D, R>.invoke(input: D): R
Link copied to clipboard
inline fun <I, O : Comparable<O>> Iterable<I>.max(crossinline selector: (I) -> O?): O
Link copied to clipboard
inline fun <I, O : Comparable<O>> Iterable<I>.min(crossinline selector: (I) -> O?): O
Link copied to clipboard
fun nice(start: Double, stop: Double, count: Int): List<Double>
fun nice(start: Float, stop: Float, count: Int): List<Float>

See equivalent d3 function.

Link copied to clipboard
fun <D : Comparable<D>> ContinuousScale<D, *>.range(vararg range: Instant): ContinuousScale<D, Instant>
fun <D : Comparable<D>> ContinuousScale<D, *>.range(vararg range: LocalDateTime): ContinuousScale<D, LocalDateTime>
fun <D : Comparable<D>> ContinuousScale<D, *>.range(vararg range: Float): ContinuousScale<D, Float>
fun <D : Comparable<D>> ContinuousScale<D, *>.range(vararg range: Int): ContinuousScale<D, Int>
@JvmName(name = "rangeColor")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<Color>): ContinuousScale<D, Color>
@JvmName(name = "rangeDouble")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<Double>): ContinuousScale<D, Double>
@JvmName(name = "rangeFloat")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<Float>): ContinuousScale<D, Float>
@JvmName(name = "rangeInt")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<Int>): ContinuousScale<D, Int>
@JvmName(name = "rangeInstant")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<Instant>): ContinuousScale<D, Instant>
@JvmName(name = "rangeLocalDateTime")
fun <D : Comparable<D>> ContinuousScale<D, *>.range(range: List<LocalDateTime>): ContinuousScale<D, LocalDateTime>
Link copied to clipboard
fun scale(domain: List<Float> = DEFAULT_DOMAIN, range: List<Float> = DEFAULT_RANGE): ContinuousScale<Float, Float>

Creates a scale with domain and range both set to 0f, 1f.

Link copied to clipboard
fun tickIncrement(start: Double, stop: Double, count: Int): Int
fun tickIncrement(start: Float, stop: Float, count: Int): Int

See equivalent d3 function.

Link copied to clipboard
fun tickInterval(start: LocalDateTime, stop: LocalDateTime, count: Int): Interval
Link copied to clipboard
fun ticks(start: Double, stop: Double, count: Int): List<Double>
fun ticks(start: Float, stop: Float, count: Int): List<Float>

See equivalent d3 function.

fun ticks(start: LocalDateTime, stop: LocalDateTime, count: Int): List<LocalDateTime>
Link copied to clipboard
fun tickStep(start: Double, stop: Double, count: Int): Double
fun tickStep(start: Float, stop: Float, count: Int): Float

See equivalent d3 function.