Getting Started with Charts
This guide will help you integrate the Charts library into your Kotlin Multiplatform project.
Installation
Replace <version> with the latest release:
Repository
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}Umbrella Dependency
commonMain.dependencies {
implementation("io.github.dautovicharis:charts:<version>")
}Modular Dependencies (Pick What You Need)
commonMain.dependencies {
implementation("io.github.dautovicharis:charts-line:<version>")
implementation("io.github.dautovicharis:charts-pie:<version>")
implementation("io.github.dautovicharis:charts-bar:<version>")
implementation("io.github.dautovicharis:charts-stacked-bar:<version>")
implementation("io.github.dautovicharis:charts-stacked-area:<version>")
implementation("io.github.dautovicharis:charts-radar:<version>")
// Optional: add charts-core directly only if you need shared base APIs
implementation("io.github.dautovicharis:charts-core:<version>")
}BOM (Optional Version Alignment)
Use BOM where Gradle platforms are supported (for example JVM/Android module dependencies). For KMP commonMain, keep explicit versions as shown above.
dependencies {
implementation(platform("io.github.dautovicharis:charts-bom:<version>"))
implementation("io.github.dautovicharis:charts-line")
implementation("io.github.dautovicharis:charts-pie")
implementation("io.github.dautovicharis:charts-bar")
implementation("io.github.dautovicharis:charts-stacked-bar")
implementation("io.github.dautovicharis:charts-stacked-area")
implementation("io.github.dautovicharis:charts-radar")
}Snapshot Builds 
Access the latest pre-release builds through the Sonatype snapshots repository. Snapshots contain the most recent features and fixes that haven't been officially released yet, allowing you to test upcoming functionality.
commonMain.dependencies {
implementation("io.github.dautovicharis:charts:<snapshot-version>")
}
dependencyResolutionManagement {
repositories {
// Sonatype Central Portal Snapshots (replaces old s01.oss.sonatype.org)
maven("https://central.sonatype.com/repository/maven-snapshots/")
}
}