
Composable charting toolkit offering percentage, min/max, events, state and duration visualizations with interactive dragging, hovering and selection, plus customizable styling and demo test app.
A Compose Multiplatform charts library for Android and Desktop.
Add the dependency to your commonMain source set:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.alexey-odintsov:charts:0.0.3")
}
}
}Basic example of using the Chart composable:
Chart(
modifier = Modifier.fillMaxWidth().height(300.dp),
type = ChartType.Percentage,
entries = chartData,
timeFrame = currentTimeFrame,
totalTime = totalTimeFrame,
onDragged = { delta -> /* handle drag */ },
onEntrySelected = { entry -> /* handle selection */ }
)The project contains a test-app module that demonstrates various chart types.
To run the desktop version of the test app:
./gradlew :test-app:runThis project is licensed under the MIT License.
A Compose Multiplatform charts library for Android and Desktop.
Add the dependency to your commonMain source set:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.alexey-odintsov:charts:0.0.3")
}
}
}Basic example of using the Chart composable:
Chart(
modifier = Modifier.fillMaxWidth().height(300.dp),
type = ChartType.Percentage,
entries = chartData,
timeFrame = currentTimeFrame,
totalTime = totalTimeFrame,
onDragged = { delta -> /* handle drag */ },
onEntrySelected = { entry -> /* handle selection */ }
)The project contains a test-app module that demonstrates various chart types.
To run the desktop version of the test app:
./gradlew :test-app:runThis project is licensed under the MIT License.