![JAR search and dependency download from the Maven repository](/logo.png)
jvmTest.plot.builder.scale.ScaleProviderHelperTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plot-builder-portable Show documentation
Show all versions of plot-builder-portable Show documentation
The Let-Plot Kotlin API depends on this artifact.
The newest version!
/*
* Copyright (c) 2020. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.scale
import jetbrains.datalore.plot.base.Aes
import jetbrains.datalore.plot.base.DataFrame
import jetbrains.datalore.plot.base.DiscreteTransform
import kotlin.test.Test
class ScaleProviderHelperTest {
@Test()
fun nullValuesInDataFrame() {
val region = DataFrame.Variable("region")
val df = DataFrame.Builder()
.put(region, listOf("Europe", "Asia", null, "Australia"))
.build()
ScaleProviderHelper.createDefault(Aes.HJUST).createScale(
"region",
DiscreteTransform(df.distinctValues(region), emptyList())
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy