mpandroidchart

Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4

我只是一个虾纸丫 提交于 2019-11-26 16:11:25
问题 I am using MPAndroidChart libarary in android studio.But when i am trying to sync gradle which given an error as below image. Gradle text is here to compile MPAndroidChart libarary. compile 'com.github.PhilJay:MPAndroidChart:v2.1.4' Please help to resolve this problem. Thanks in advance 回答1: Add maven { url "https://jitpack.io" } to repositories under allprojects not under buildscript see screenshot: 回答2: Putting repositories { maven { url "https://jitpack.io" } } in build.gradle in app

How do MPAndroidChart renderers work and how do I write a custom renderer?

柔情痞子 提交于 2019-11-26 15:30:26
I am using the library MPAndroidChart but it doesn't have all of the functionality I want out of the box. I have heard that it is possible to implement the functionality I want by writing a custom renderer. I have looked at the source code for the renderers in the MPAndroidChart GitHub repo, but I can't understand the concepts involved. How do MPAndroidChart renderers work? What is the high-level procedure for writing a custom renderer? Note: for many questions posted on SO for mpandroidchart the solution is to implement some kind of custom renderer. A comment on such questions "you can solve

MPAndroidChart - Adding labels to bar chart

喜你入骨 提交于 2019-11-26 11:17:48
问题 It is necessary for my application to have a label on each bar of the bar chart. Is there a way to do this with MPAndroidChart? I could not find a way to do this on the project wiki/javadocs. If there isn\'t a way to do this is there another software that will allow me to? 回答1: Updated Answer (MPAndroidChart v3.0.1) Being such a commonly used feature, v3.0.1 of the library added the IndexAxisValueFormatter class exactly for this purpose, so it's just one line of code now: mBarChart.getXAxis()

MPAndroid Chart not displaying any labels for xAxis , what is missing?

﹥>﹥吖頭↗ 提交于 2019-11-26 08:38:04
问题 I\'m implementing a feature for displaying Incomes/Expenses for properties & also provided Filter for 1 Month , 3 Months , 6 Months & 12 Months . So, I have to display Months labels according to filter selected for example if 3 Month filter selected then need to display March , Feb & Jan but what currently labels are not displaying on XAxis. Here is my code , please rectify any issue: private void setChart() { ArrayList<BarEntry> incomeEntries = getIncomeEntries(); ArrayList<BarEntry>