Github 地址:https://github.com/PhilJay/MPAndroidChart
依賴: Project 的build.gradle檔案中新增 allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
} 然後在 module中的build,gradle 中新增 implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3' 然而大多情況下,我們會根據自己的需求自定義MPAndroidChart庫,則需要下載原始碼並將MPChartLib引入自己的專案中。 |