You'll find here everything you need to know about Charts.kt.
Charts-kt offers a strongly typed DSL to create charts easily, this documentation provides helpful information as well as code you can run in your browser:
//run height=150 from=8 to=15
import io.data2viz.charts.*
import io.data2viz.charts.dimension.*
import io.data2viz.charts.chart.*
import io.data2viz.charts.chart.mark.*
import io.data2viz.charts.viz.*
import io.data2viz.geom.Size
fun main() {
val vc = newVizContainer().apply { size = Size(150.0, 150.0) }
vc.chart(listOf(0.0, 1.0, 2.0, 3.0, 4.0)) {
val values = quantitative( { domain } )
plot(values, values)
}
}
A high-level overview of how it’s organized will help you know where to look for certain things: