Quantitative
class Quantitative<DOMAIN>(accessor: Datum<DOMAIN>.() -> Double?, parentDimension: Quantitative<DOMAIN>?, init: Quantitative<DOMAIN>.() -> Unit) : ContinuousDimension<DOMAIN, Double?>
Content copied to clipboard
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>.
Use the Chart.quantitative function to build a Quantitative dimension.
Examples:
val sizeDimension = quantitative( { domain.size } )
val speedDimension = quantitative( { domain.speed } )
Constructors
Quantitative
Link copied to clipboard
fun <DOMAIN> Quantitative(accessor: Datum<DOMAIN>.() -> Double?, parentDimension: Quantitative<DOMAIN>? = null, init: Quantitative<DOMAIN>.() -> Unit = {})
Content copied to clipboard
Functions
Properties
isContinuous
Link copied to clipboard
Is this Dimension considered "continuous"?
isDiscrete
Link copied to clipboard
Is this Dimension considered "discrete"?