fun scaleXDateTime()

in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/DateTime.kt [56:85]


fun scaleXDateTime(
    name: String? = null,
    breaks: Any? = null,      // ToDo: should understand Date
    labels: Any? = null,
    lablim: Int? = null,
    limits: Pair<Any?, Any?>? = null,
    expand: List<Number>? = null,
    naValue: Any? = null,
    format: String? = null,
    position: String? = null
): Scale {
    checkScaleExpand(expand)
    return Scale(
        aesthetic = Aes.X,
        name = name,
        breaks = breaks,
        labels = labels,
        lablim = lablim,
        limits = limits,
        expand = expand,
        naValue = naValue,
        format = format,
        position = position,
        otherOptions = Options(
            mapOf(
                DATE_TIME to true
            )
        )
    )
}