xref: /aosp_15_r20/external/MPAndroidChart/README.md (revision f99be7d8b6514e88ac10f2e78d89d406712b34e9)
1*f99be7d8SXin Li![banner](https://raw.github.com/PhilJay/MPChart/master/design/feature_graphic_smaller.png)
2*f99be7d8SXin Li
3*f99be7d8SXin Li[![Release](https://img.shields.io/github/release/PhilJay/MPAndroidChart.svg?style=flat)](https://jitpack.io/#PhilJay/MPAndroidChart)
4*f99be7d8SXin Li[![API](https://img.shields.io/badge/API-14%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=14)
5*f99be7d8SXin Li[![Android Arsenal](http://img.shields.io/badge/Android%20Arsenal-MPAndroidChart-orange.svg?style=flat)](http://android-arsenal.com/details/1/741)
6*f99be7d8SXin Li[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/PhilJay/MPAndroidChart?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge)
7*f99be7d8SXin Li[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](http://twitter.com/mpandroidchart)
8*f99be7d8SXin Li
9*f99be7d8SXin Li:zap: A powerful & easy to use chart library for Android :zap:
10*f99be7d8SXin Li
11*f99be7d8SXin Li[**Charts**](https://github.com/danielgindi/Charts) is the iOS version of this library
12*f99be7d8SXin Li
13*f99be7d8SXin Li## Table of Contents
14*f99be7d8SXin Li1. [Quick Start](#quick-start)
15*f99be7d8SXin Li    1. [Gradle](#gradle-setup)
16*f99be7d8SXin Li    1. [Maven](#maven-setup)
17*f99be7d8SXin Li1. [Documentation](#documentation)
18*f99be7d8SXin Li1. [Examples](#examples)
19*f99be7d8SXin Li1. [Questions](#report)
20*f99be7d8SXin Li1. [Donate](#donate)
21*f99be7d8SXin Li1. [Social Media](#social)
22*f99be7d8SXin Li1. [More Examples](#more-examples)
23*f99be7d8SXin Li1. [License](#licence)
24*f99be7d8SXin Li1. [Creators](#creators)
25*f99be7d8SXin Li
26*f99be7d8SXin Li### Gradle Setup
27*f99be7d8SXin Li
28*f99be7d8SXin Li```gradle
29*f99be7d8SXin Lirepositories {
30*f99be7d8SXin Li    maven { url 'https://jitpack.io' }
31*f99be7d8SXin Li}
32*f99be7d8SXin Li
33*f99be7d8SXin Lidependencies {
34*f99be7d8SXin Li    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
35*f99be7d8SXin Li}
36*f99be7d8SXin Li```
37*f99be7d8SXin Li
38*f99be7d8SXin Li### Maven Setup
39*f99be7d8SXin Li
40*f99be7d8SXin Li```xml
41*f99be7d8SXin Li<!-- <repositories> section of pom.xml -->
42*f99be7d8SXin Li<repository>
43*f99be7d8SXin Li    <id>jitpack.io</id>
44*f99be7d8SXin Li   <url>https://jitpack.io</url>
45*f99be7d8SXin Li</repository>
46*f99be7d8SXin Li
47*f99be7d8SXin Li<!-- <dependencies> section of pom.xml -->
48*f99be7d8SXin Li<dependency>
49*f99be7d8SXin Li    <groupId>com.github.PhilJay</groupId>
50*f99be7d8SXin Li    <artifactId>MPAndroidChart</artifactId>
51*f99be7d8SXin Li    <version>v3.1.0</version>
52*f99be7d8SXin Li</dependency>
53*f99be7d8SXin Li```
54*f99be7d8SXin Li
55*f99be7d8SXin Li<br/>
56*f99be7d8SXin Li
57*f99be7d8SXin Li<h2 id="documentation">Documentation :notebook_with_decorative_cover:</h2>
58*f99be7d8SXin Li
59*f99be7d8SXin LiSee the [**documentation**](https://weeklycoding.com/mpandroidchart/) for examples and general use of MPAndroidChart.
60*f99be7d8SXin Li
61*f99be7d8SXin LiSee the [**javadocs**](https://jitpack.io/com/github/PhilJay/MPAndroidChart/v3.1.0/javadoc/) for more advanced documentation.
62*f99be7d8SXin Li
63*f99be7d8SXin Li<br/>
64*f99be7d8SXin Li
65*f99be7d8SXin Li<h2 id="examples">Examples :eyes:</h2>
66*f99be7d8SXin Li
67*f99be7d8SXin LiDownload the [MPAndroidChart Example App](https://play.google.com/store/apps/details?id=com.xxmassdeveloper.mpchartexample) or look at the [source code](https://github.com/PhilJay/MPAndroidChart/tree/master/MPChartExample).
68*f99be7d8SXin Li
69*f99be7d8SXin Li[![ScreenShot](https://github.com/PhilJay/MPAndroidChart/blob/master/design/video_thumbnail.png)](https://www.youtube.com/watch?v=ufaK_Hd6BpI)
70*f99be7d8SXin Li
71*f99be7d8SXin Li<br/>
72*f99be7d8SXin Li
73*f99be7d8SXin Li<h2 id="report">Questions & Issues :thinking:</h2>
74*f99be7d8SXin Li
75*f99be7d8SXin LiThis repository's issue tracker is only for bugs and feature requests. The maintainers ask that you refrain from asking questions about how to use MPAndroidChart through the issue tracker.
76*f99be7d8SXin Li
77*f99be7d8SXin LiPlease read the [**documentation**](https://weeklycoding.com/mpandroidchart/) first, then ask all your questions on [stackoverflow.com](https://stackoverflow.com/questions/tagged/mpandroidchart) for the fastest answer.
78*f99be7d8SXin Li
79*f99be7d8SXin Li<br/>
80*f99be7d8SXin Li
81*f99be7d8SXin Li<h2 id="donate">Donations :heart:</h2>
82*f99be7d8SXin Li
83*f99be7d8SXin Li**This project needs you!** If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, **feel free to donate**. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!
84*f99be7d8SXin Li
85*f99be7d8SXin Li**PayPal**
86*f99be7d8SXin Li
87*f99be7d8SXin Li- [**Donate 5 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7G52RA87ED8NY): Thank's for creating this project, here's a coffee (or some beer) for you!
88*f99be7d8SXin Li- [**Donate 10 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4C9TPE67F5PUQ): Wow, I am stunned. Let me take you to the movies!
89*f99be7d8SXin Li- [**Donate 15 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YKMPTFMVK3JMC): I really appreciate your work, let's grab some lunch!
90*f99be7d8SXin Li- [**Donate 25 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H9JA4QX7UHXCY): That's some awesome stuff you did right there, dinner is on me!
91*f99be7d8SXin Li- Or you can also [**choose what you want to donate**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EGBENAC5XBCKS), all donations are awesome!
92*f99be7d8SXin Li
93*f99be7d8SXin Li<br/>
94*f99be7d8SXin Li
95*f99be7d8SXin Li<h2 id="social">Social Media :fire:</h2>
96*f99be7d8SXin Li
97*f99be7d8SXin LiIf you like this library, please tell others about it :two_hearts: :two_hearts:
98*f99be7d8SXin Li
99*f99be7d8SXin Li[![Share on Twitter](https://github.com/PhilJay/MPAndroidChart/blob/master/design/twitter_icon.png)](https://twitter.com/intent/tweet?text=Check%20out%20the%20awesome%20MPAndroidChart%20library%20on%20Github:%20https://github.com/PhilJay/MPAndroidChart)
100*f99be7d8SXin Li[![Share on Google+](https://github.com/PhilJay/MPAndroidChart/blob/master/design/googleplus_icon.png)](https://plus.google.com/share?url=https://github.com/PhilJay/MPAndroidChart)
101*f99be7d8SXin Li[![Share on Facebook](https://github.com/PhilJay/MPAndroidChart/blob/master/design/facebook_icon.png)](https://www.facebook.com/sharer/sharer.php?u=https://github.com/PhilJay/MPAndroidChart)
102*f99be7d8SXin Li
103*f99be7d8SXin LiIf you like, you can follow me on Twitter [**@PhilippJahoda**](https://twitter.com/PhilippJahoda).
104*f99be7d8SXin Li
105*f99be7d8SXin Li<br/>
106*f99be7d8SXin Li
107*f99be7d8SXin Li<h2 id="more-examples">More Examples :+1:</h2>
108*f99be7d8SXin Li
109*f99be7d8SXin Li<br/>
110*f99be7d8SXin Li
111*f99be7d8SXin Li**LineChart (with legend, simple design)**
112*f99be7d8SXin Li
113*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_linechart4.png)
114*f99be7d8SXin Li<br/><br/>
115*f99be7d8SXin Li
116*f99be7d8SXin Li**LineChart (with legend, simple design)**
117*f99be7d8SXin Li
118*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_linechart3.png)
119*f99be7d8SXin Li<br/><br/>
120*f99be7d8SXin Li
121*f99be7d8SXin Li**LineChart (cubic lines)**
122*f99be7d8SXin Li
123*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/cubiclinechart.png)
124*f99be7d8SXin Li<br/><br/>
125*f99be7d8SXin Li
126*f99be7d8SXin Li**LineChart (gradient fill)**
127*f99be7d8SXin Li
128*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/line_chart_gradient.png)
129*f99be7d8SXin Li<br/><br/>
130*f99be7d8SXin Li
131*f99be7d8SXin Li**BarChart (with legend, simple design)**
132*f99be7d8SXin Li
133*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_barchart3.png)
134*f99be7d8SXin Li<br/><br/>
135*f99be7d8SXin Li
136*f99be7d8SXin Li**BarChart (grouped DataSets)**
137*f99be7d8SXin Li
138*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/groupedbarchart.png)
139*f99be7d8SXin Li<br/><br/>
140*f99be7d8SXin Li
141*f99be7d8SXin Li**Horizontal-BarChart**
142*f99be7d8SXin Li
143*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/horizontal_barchart.png)
144*f99be7d8SXin Li<br/><br/>
145*f99be7d8SXin Li
146*f99be7d8SXin Li**Combined-Chart (bar- and linechart in this case)**
147*f99be7d8SXin Li
148*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/combined_chart.png)
149*f99be7d8SXin Li<br/><br/>
150*f99be7d8SXin Li
151*f99be7d8SXin Li**PieChart (with selection, ...)**
152*f99be7d8SXin Li
153*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/simpledesign_piechart1.png)
154*f99be7d8SXin Li<br/><br/>
155*f99be7d8SXin Li
156*f99be7d8SXin Li**ScatterChart** (with squares, triangles, circles, ... and more)
157*f99be7d8SXin Li
158*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/scatterchart.png)
159*f99be7d8SXin Li<br/><br/>
160*f99be7d8SXin Li
161*f99be7d8SXin Li**CandleStickChart** (for financial data)
162*f99be7d8SXin Li
163*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/candlestickchart.png)
164*f99be7d8SXin Li<br/><br/>
165*f99be7d8SXin Li
166*f99be7d8SXin Li**BubbleChart** (area covered by bubbles indicates the yValue)
167*f99be7d8SXin Li
168*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/bubblechart.png)
169*f99be7d8SXin Li<br/><br/>
170*f99be7d8SXin Li
171*f99be7d8SXin Li**RadarChart** (spider web chart)
172*f99be7d8SXin Li
173*f99be7d8SXin Li![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/radarchart.png)
174*f99be7d8SXin Li
175*f99be7d8SXin Li<br/>
176*f99be7d8SXin Li
177*f99be7d8SXin Li<h1 id="license">License :page_facing_up:</h1>
178*f99be7d8SXin Li
179*f99be7d8SXin LiCopyright 2020 Philipp Jahoda
180*f99be7d8SXin Li
181*f99be7d8SXin LiLicensed under the Apache License, Version 2.0 (the "License");
182*f99be7d8SXin Liyou may not use this file except in compliance with the License.
183*f99be7d8SXin LiYou may obtain a copy of the License at
184*f99be7d8SXin Li
185*f99be7d8SXin Li> http://www.apache.org/licenses/LICENSE-2.0
186*f99be7d8SXin Li
187*f99be7d8SXin LiUnless required by applicable law or agreed to in writing, software
188*f99be7d8SXin Lidistributed under the License is distributed on an "AS IS" BASIS,
189*f99be7d8SXin LiWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190*f99be7d8SXin LiSee the License for the specific language governing permissions and
191*f99be7d8SXin Lilimitations under the License.
192*f99be7d8SXin Li
193*f99be7d8SXin Li<br/>
194*f99be7d8SXin Li
195*f99be7d8SXin Li<h2 id="creators">Special Thanks :heart:</h2>
196*f99be7d8SXin Li
197*f99be7d8SXin LiThese people rock!
198*f99be7d8SXin Li
199*f99be7d8SXin Li- [danielgindi](https://github.com/danielgindi) - Daniel Gindi
200*f99be7d8SXin Li- [mikegr](https://github.com/mikegr) - Michael Greifeneder
201*f99be7d8SXin Li- [tony](https://github.com/tonypatino-monoclesociety) - Tony
202*f99be7d8SXin Li- [almic](https://github.com/almic) - Mick A.
203*f99be7d8SXin Li- [jitpack.io](https://github.com/jitpack-io) - JitPack.io
204