android - How to install/import MPAndroidChart -


experts, newbie, use mpandroidchart plot line chart.

but don't know how install/import it.

below got far:

  1. i using android studio 2.1.2.

  2. i have downloaded 2 files: mpandroidchart-3.0.0-beta1.tar, mpandroidchart-3.0.0-beta1.zip github.

what next? (google results .jar + eclipse)

could guide me step step, operational guide please? please don't speak alien language.

many thanks.

just add dependency in gradle:

allprojects {     repositories {         maven { url "https://jitpack.io" }     } }  dependencies {     compile 'com.github.philjay:mpandroidchart:v3.0.0-beta1' } 

other ways use library can found here.

then import class:

import com.github.mikephil.charting.charts.linechart; import com.github.mikephil.charting.data.linedata; import com.github.mikephil.charting.data.linedataset; 

several full examples various charts, including line chart, can found here.


Comments

Post a Comment

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

unity3d - Fatal error- Monodevelop-Unity failed to start -