Skip to content

Commit 7b33554

Browse files
committed
Minor changes & documentation
1 parent 02cf2c1 commit 7b33554

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

MPChartExample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ buildscript {
3939
jcenter()
4040
}
4141
dependencies {
42-
classpath 'com.android.tools.build:gradle:2.1.2'
42+
classpath 'com.android.tools.build:gradle:2.1.3'
4343
//classpath 'io.realm:realm-gradle-plugin:0.88.2'
4444
// NOTE: Do not place your application dependencies here; they belong
4545
// in the individual module build.gradle files

MPChartLib/src/main/java/com/github/mikephil/charting/components/AxisBase.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ public boolean isDrawAxisLineEnabled() {
183183
return mDrawAxisLine;
184184
}
185185

186+
/**
187+
* Centers the axis labels instead of drawing them at their original position.
188+
* This is useful especially for grouped BarChart.
189+
*
190+
* @param enabled
191+
*/
186192
public void setCenterAxisLabels(boolean enabled) {
187193
mCenterAxisLabels = enabled;
188194
}
@@ -504,13 +510,13 @@ public void enableGridDashedLine(float lineLength, float spaceLength, float phas
504510
lineLength, spaceLength
505511
}, phase);
506512
}
507-
513+
508514
/**
509515
* Enables the grid line to be drawn in dashed mode, e.g. like this
510516
* "- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF.
511517
* Keep in mind that hardware acceleration boosts performance.
512518
*
513-
* @param effect the DashPathEffect
519+
* @param effect the DashPathEffect
514520
*/
515521
public void setGridDashedLine(DashPathEffect effect) {
516522
mGridDashPathEffect = effect;
@@ -540,7 +546,7 @@ public boolean isGridDashedLineEnabled() {
540546
public DashPathEffect getGridDashPathEffect() {
541547
return mGridDashPathEffect;
542548
}
543-
549+
544550

545551
/**
546552
* Enables the axis line to be drawn in dashed mode, e.g. like this
@@ -556,13 +562,13 @@ public void enableAxisLineDashedLine(float lineLength, float spaceLength, float
556562
lineLength, spaceLength
557563
}, phase);
558564
}
559-
565+
560566
/**
561567
* Enables the axis line to be drawn in dashed mode, e.g. like this
562568
* "- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF.
563569
* Keep in mind that hardware acceleration boosts performance.
564570
*
565-
* @param effect the DashPathEffect
571+
* @param effect the DashPathEffect
566572
*/
567573
public void setAxisLineDashedLine(DashPathEffect effect) {
568574
mAxisLineDashPathEffect = effect;

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99
dependencies {
1010
classpath "io.realm:realm-gradle-plugin:1.1.0"
11-
classpath 'com.android.tools.build:gradle:2.1.2'
11+
classpath 'com.android.tools.build:gradle:2.1.3'
1212
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1313
}
1414
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Sat Sep 03 21:01:56 CEST 2016
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

0 commit comments

Comments
 (0)