-1

I have downloaded the MPChartLib library as zip file.I use Android Studio 1.5

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Areej Hassoun
  • 11
  • 2
  • 7

3 Answers3

3

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 {
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
}

Visit MP Android Chard Usage for more details

Bhavesh Desai
  • 753
  • 4
  • 20
2

Compile this in your build.gradle file-:

compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'

repositories {
    maven { url "https://jitpack.io" }
}

Create layout using this-:

<com.github.mikephil.charting.charts.PieChart
        android:id="@+id/piechart"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

Use this Link for Further Reference-: https://www.studytutorial.in/android-pie-chart-using-mpandroid-library-tutorial

Shivam Oberoi
  • 1,447
  • 1
  • 9
  • 18
1

Just browse what is the content of the ZIP file, if its a jar you can unzip and import it Pressing Ctrl+Alt+Shift+S and selecting the Plus Sign in the Libraries menu