Charts.kt documentation

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:

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)) { val values = quantitative( { domain } ) plot(values, values) } }

How the documentation is organized

A high-level overview of how it’s organized will help you know where to look for certain things:

  • Tutorials take you by the hand through a series of steps to create a charts in different platforms. Start here if you’re new to Charts.kt or Kotlin development.
  • Topic guides discuss key topics and concepts at a fairly high level and provide useful background information and explanation.
  • Reference guides contain technical reference for APIs and other aspects of Charts.kt's machinery. They describe how it works and how to use it but assume that you have a basic understanding of key concepts.
  • How-to guides are recipes. They guide you through the steps involved in addressing key problems and use-cases. They are more advanced than tutorials and assume some knowledge of how Charts.kt works.