Manual Setup
This guide will help you integrate the HDCharts library into your Kotlin Multiplatform project.
Installation
Repository
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}Umbrella Dependency
commonMain.dependencies {
implementation("io.github.hdcharts:charts:3.1.0-SNAPSHOT")
}Modular Dependencies (Pick What You Need)
commonMain.dependencies {
implementation("io.github.hdcharts:line:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:pie:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:bar:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:histogram:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:stacked-bar:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:stacked-area:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:radar:3.1.0-SNAPSHOT")
implementation("io.github.hdcharts:gauge:3.1.0-SNAPSHOT")
}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.hdcharts:bom:3.1.0-SNAPSHOT"))
implementation("io.github.hdcharts:line")
implementation("io.github.hdcharts:pie")
implementation("io.github.hdcharts:bar")
implementation("io.github.hdcharts:histogram")
implementation("io.github.hdcharts:stacked-bar")
implementation("io.github.hdcharts:stacked-area")
implementation("io.github.hdcharts:radar")
implementation("io.github.hdcharts:gauge")
}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.hdcharts:charts:<snapshot-version>")
}
dependencyResolutionManagement {
repositories {
maven("https://central.sonatype.com/repository/maven-snapshots/")
}
}