Package io.data2viz.charts.dimension

Types

Constant
Link copied to clipboard
common
class Constant<DOMAIN, VALUE>(value: VALUE, init: Constant<DOMAIN, VALUE>.() -> Unit) : DiscreteDimension<DOMAIN, VALUE>
Constant is a Dimension that always returns the same <VALUE> object for any <DOMAIN> object.
ContinuousDimension
Link copied to clipboard
common
abstract class ContinuousDimension<DOMAIN, VALUE> : Dimension<DOMAIN, VALUE>
A ContinuousDimension is a Dimension that handle continuous values: Double, LocalDateTime.
Dimension
Link copied to clipboard
common
abstract class Dimension<DOMAIN, VALUE>(accessor: Datum<DOMAIN>.() -> VALUE, parentDimension: Dimension<DOMAIN, VALUE>?)
A dimension is an object that explains how a "DOMAIN" object is converted to a "VALUE" (which use the Dimension's accessor) and how this "VALUE" should be interpreted: numeric, temporal or discrete?
Discrete
Link copied to clipboard
common
class Discrete<DOMAIN, VALUE>(accessor: Datum<DOMAIN>.() -> VALUE, init: Discrete<DOMAIN, VALUE>.() -> Unit) : DiscreteDimension<DOMAIN, VALUE>
Discrete is a Dimension that is used to manage discrete values.
DiscreteDimension
Link copied to clipboard
common
abstract class DiscreteDimension<DOMAIN, VALUE> : Dimension<DOMAIN, VALUE>
A DiscreteDimension is a Dimension that handle discrete values.
Quantitative
Link copied to clipboard
common
class Quantitative<DOMAIN>(accessor: Datum<DOMAIN>.() -> Double?, parentDimension: Quantitative<DOMAIN>?, init: Quantitative<DOMAIN>.() -> Unit) : ContinuousDimension<DOMAIN, Double?>
Quantitative is a Dimension that is used to manage continuous numeric values (as Double) It is build by giving an "accessor" lambda that returns a Double object from a given Datum of a <DOMAIN>.
Temporal
Link copied to clipboard
common
class Temporal<DOMAIN>(accessor: Datum<DOMAIN>.() -> Instant, parentDimension: Temporal<DOMAIN>?, init: Temporal<DOMAIN>.() -> Unit) : ContinuousDimension<DOMAIN, Instant>
Temporal is a Dimension that is used to manage continuous time values (as LocalDateTime) It is build by giving an "accessor" lambda that returns a LocalDateTime object from a given Datum of a <DOMAIN>.