Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add this to your app build.gradle:

    Code Block
    languagejava
    dependencies { 
    	compile 'com.github.PhilJay:MPAndroidChart:v3.0.1' 
    }

2. Maven

 

  • Add the following to the <repositories> section of your pom.xml:

    Code Block
    languagejava
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>


  • Add the following to the <dependencies> section of your pom.xml:
     

    Code Block
    languagejava
    <dependency>
        <groupId>com.github.PhilJay</groupId>
        <artifactId>MPAndroidChart</artifactId>
        <version>v3.0.1</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

After implementing the library you have to use xAuthentication from Java SDK page and get data in JSON format to Android.

After geting data is necessary to build your own adapter for data what you have.

The result of our implementation is below. This chart can be zoom-in/zoom-out and you can move on the x and y axis.

 

Tip
More examples you can see here on For more examples please visit our market place http://www.belladati.com/marketplace/mobile-overview/.