android图表MPAndroidChart教程

作者: android 发布时间: 2018-10-30 浏览: 3669 次 编辑

github地址:https://github.com/starrynightdawn/MPAndroidChart


Quick Start ????

Add the library to your Android project, then check out the examples below!

Gradle Setup

repositories {
    maven { url 'https://jitpack.io' }
}dependencies {
    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'}

Maven Setup

<!-- <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.PhilJay</groupId>
    <artifactId>MPAndroidChart</artifactId>
    <version>v3.1.0-alpha</version>
</dependency>


Documentation ????

See the documentation for examples and general use of MPAndroidChart.

See the javadocs for more advanced documentation.


Examples ????

Download 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).

ScreenShot


Questions & Issues ????

This 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.

Please read the documentation first, then ask all your questions on stackoverflow.com for the fastest answer.


Donations ❤️

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!

My Bitcoin Wallet (Bitcoin only)

1G8G6tqQ3oh38BvDH3xq8o6gGVMvBTkcUg

My Ethereum Wallet (Ethereum only)

0x04ef098bf9f91871391363e3caf791afa3adc39b

PayPal

  • Donate 5 $: Thank's for creating this project, here's a coffee (or some beer) for you!

  • Donate 10 $: Wow, I am stunned. Let me take you to the movies!

  • Donate 15 $: I really appreciate your work, let's grab some lunch!

  • Donate 25 $: That's some awesome stuff you did right there, dinner is on me!

  • Or you can also choose what you want to donate, all donations are awesome!


Social Media ????

If you like this library, please tell others about it ???? ????

Share on Twitter Share on Google+ Share on Facebook

You can follow me on Twitter @PhilippJahoda or sign up for my daily coding newsletter.


More Examples ????


LineChart (with legend, simple design)

alt tag

LineChart (with legend, simple design)

alt tag

LineChart (cubic lines)

alt tag

LineChart (gradient fill)

alt tag

BarChart (with legend, simple design)

alt tag

BarChart (grouped DataSets)

alt tag

Horizontal-BarChart

alt tag

Combined-Chart (bar- and linechart in this case)

alt tag

PieChart (with selection, ...)

alt tag 

ScatterChart (with squares, triangles, circles, ... and more)

alt tag

CandleStickChart (for financial data)

alt tag

BubbleChart (area covered by bubbles indicates the yValue)

alt tag

RadarChart (spider web chart)

alt tag


License ????

Copyright 2018 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

http://www.apache.org/licenses/LICENSE-2.0

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.