Coder Social home page Coder Social logo

damon-l / mpandroidchart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philjay/mpandroidchart

0.0 2.0 0.0 21.98 MB

A powerful Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, dragging and animations.

Java 100.00%

mpandroidchart's Introduction

Twitter Twitter Android Arsenal ![Release](https://img.shields.io/github/release/PhilJay/MPAndroidChart.svg?label=maven central) API

Remember: It's all about the looks.

alt tag

MPAndroidChart โšก is a powerful & easy to use chart library for Android. It runs on API level 8 and upwards.

As an additional feature, this library allows cross-platform development between Android and iOS as an iOS version of this library is also available: Charts โšก

Are you using this library? Let me know about it and I will add your project to the references.

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!

PayPal

If you just want to be nice, you can check out my Amazon-Wishlist.

Xamarin

Xamarin port (by Flash3001): Android - GitHub/NuGet. iOS - GitHub/NuGet.

Realm.io

MPAndroidChart-Realm allows to directly plot / draw data from Realm.io mobile database.

Spread the word

If you like this library, please tell others about it ๐Ÿ’• ๐Ÿ’•

Demo

For a brief overview of the most important features, please download the PlayStore Demo MPAndroidChart Example.apk and try it out. The corresponding code for the demo-application is also included in this repository inside the MPChartExample folder.

ScreenShot

Questions & Issues

If you are having questions or problems, you should:

  • Review your code. Make absolutely sure that everything is correct on your side.
  • Make sure you are using the latest version of the library. Check the release-section.
  • Study the Documentation-Wiki or the javadocs
  • Search or open questions on stackoverflow with the mpandroidchart tag
  • Search known issues for your problem (open and closed)
  • Create new issues (please ๐Ÿ”ฅ search known issues before ๐Ÿ”ฅ, do not create duplicate issues)
  • Check this: "how not to contribute"

Please do not expect answers to your questions if you have not considered all above mentioned approaches in advance.

Features

Core features:

  • 8 different chart types
  • Scaling on both axes (with touch-gesture, axes separately or pinch-zoom)
  • Dragging / Panning (with touch-gesture)
  • Combined-Charts (line-, bar-, scatter-, candle-data)
  • Dual (separate) Axes
  • Customizable Axes (both x- and y-axis)
  • Highlighting values (with customizable popup-views)
  • Save chart to SD-Card (as image, or as .txt file)
  • Predefined color templates
  • Legends (generated automatically, customizable)
  • Animations (build up animations, on both xPx- and yPx-axis)
  • Limit lines (providing additional information, maximums, ...)
  • Fully customizable (paints, typefaces, legends, colors, background, gestures, dashed lines, ...)
  • Smooth zooming and scrolling for up to 30.000 data points in Line- and BarChart
  • Gradle support
  • Plotting data directly from Realm.io mobile database: MPAndroidChart-Realm โšก

Usage

In order to use the library, there are 4 different options:

1. Gradle dependency (recommended)

  • Add the following to your project level build.gradle:
allprojects {
	repositories {
		maven { url "https://jitpack.io" }
	}
}
  • Add this to your app build.gradle:
dependencies {
	compile 'com.github.PhilJay:MPAndroidChart:v3.0.0'
}

2. Maven

  • Add the following to the <repositories> section of your pom.xml:
<repository>
       <id>jitpack.io</id>
       <url>https://jitpack.io</url>
</repository>
  • Add the following to the <dependencies> section of your pom.xml:
<dependency>
       <groupId>com.github.PhilJay</groupId>
       <artifactId>MPAndroidChart</artifactId>
       <version>v3.0.0</version>
</dependency>

3. jar file only

  • Download the latest .jar file from the releases section
  • Copy the mpandroidchartlibrary-version.jar file into the libs folder of your Android application project
  • Start using the library

4. clone whole repository

  • Open your commandline-input and navigate to the desired destination folder on your machine (where you want to place the library)
  • Use the command git clone https://github.com/PhilJay/MPAndroidChart.git to download the full MPAndroidChart repository to your computer (this includes the folder of the library as well as the folder of the example project)
  • Import the library folder (MPChartLib) into Android Studio (recommended) or your Eclipse workspace
  • Add it as a reference to your project:

Documentation

For a detailed documentation ๐Ÿ“”, please have a look at the Wiki or the javadocs.

Furthermore, you can also rely on the MPChartExample folder and check out the example code in that project. The corresponding application to the example project is also available in the Google PlayStore.

You have a problem that cannot be solved by having a look at the example project and documentation? No problem, let's talk: Gitter

Chart types

  • LineChart (with legend, simple design) alt tag

  • LineChart (with legend, simple design) alt tag

  • LineChart (cubic lines) alt tag

  • LineChart (gradient fill) alt tag

  • Combined-Chart (bar- and linechart in this case) alt tag

  • BarChart (with legend, simple design)

alt tag

  • BarChart (grouped DataSets)

alt tag

  • Horizontal-BarChart

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

Special thanks to danielgindi, mikegr, tony and jitpack.io for their contributions to this project.

mpandroidchart's People

Contributors

aint avatar almilli avatar androideveloper avatar angelofmors avatar christiandeange avatar corycharlton avatar ctncardoso avatar danielgindi avatar dexterbg avatar emmaguy avatar farfromrefug avatar fmt-println-mko avatar jitpack-io avatar leomehlig avatar lijohnson avatar matiash avatar mesropd avatar mikedream89 avatar mikemonteith avatar mpieter avatar ph1lb4 avatar philjay avatar pingany avatar praveen2106 avatar redwarp avatar robertschmid-ast avatar romangromov avatar thadeubatista avatar tonypatino-monoclesociety avatar wajdichamakhi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.