A powerful & easy to use chart library for Android, updated for modern Android development with Jetpack Compose example app.
Based on the original MPAndroidChart by Philipp Jahoda.
If you find this library useful, please consider giving it a star! Your support helps keep this project alive and motivates continued development and maintenance.
- Support This Project
- Quick Start
- Documentation
- Examples
- Questions & Issues
- More Examples
- License
- Credits
Add JitPack repository to your settings.gradle or root build.gradle:
dependencyResolutionManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}Add the dependency to your module's build.gradle:
dependencies {
implementation 'com.github.Amir-yazdanmanesh:MPAndroidChart-Compose:v3.2.1'
}<!-- <repositories> section of pom.xml -->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<!-- <dependencies> section of pom.xml -->
<dependency>
<groupId>com.github.Amir-yazdanmanesh</groupId>
<artifactId>MPAndroidChart-Compose</artifactId>
<version>v3.2.1</version>
</dependency>See the documentation for examples and general use of MPAndroidChart.
Check out the example app in the MPChartExample directory. The example app has been rewritten using Jetpack Compose.
This repository's issue tracker is for bugs and feature requests.
Please read the documentation first, then ask questions on stackoverflow.com using the mpandroidchart tag.
LineChart (with legend, simple design)
LineChart (cubic lines)
LineChart (gradient fill)
BarChart (with legend, simple design)
BarChart (grouped DataSets)
Horizontal-BarChart
Combined-Chart (bar- and linechart in this case)
PieChart (with selection)
ScatterChart (with squares, triangles, circles, ... and more)
CandleStickChart (for financial data)
BubbleChart (area covered by bubbles indicates the yValue)
RadarChart (spider web chart)
Copyright 2020 Philipp Jahoda
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Based on the original MPAndroidChart by Philipp Jahoda.
Special thanks to:
- danielgindi - Daniel Gindi
- mikegr - Michael Greifeneder











