X Tutup
Skip to content

Commit 3514aae

Browse files
committed
Major improvements to stacked bars and bar highlighting.
1 parent 3b089da commit 3514aae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+735
-294
lines changed

MPChartExample/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.xxmassdeveloper.mpchartexample"
44
android:versionCode="40"
5-
android:versionName="2.1.0" >
5+
android:versionName="2.1.1" >
66

77
<uses-sdk
88
android:minSdkVersion="8"

MPChartExample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ dependencies {
5353
//compile fileTree(dir: 'libs', include: ['*.jar'])
5454
compile project(':MPChartLib') // remove this if you only imported the example project
5555
compile 'com.android.support:appcompat-v7:21.0.3'
56-
//compile 'com.github.PhilJay:MPAndroidChart:v2.0.9'
56+
//compile 'com.github.PhilJay:MPAndroidChart:v2.1.1'
5757
}

MPChartExample/src/com/xxmassdeveloper/mpchartexample/BarChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import com.github.mikephil.charting.data.filter.Approximator;
3333
import com.github.mikephil.charting.data.filter.Approximator.ApproximatorType;
3434
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
35-
import com.github.mikephil.charting.utils.Highlight;
35+
import com.github.mikephil.charting.highlight.Highlight;
3636
import com.github.mikephil.charting.utils.ValueFormatter;
3737
import com.xxmassdeveloper.mpchartexample.custom.MyValueFormatter;
3838
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;

MPChartExample/src/com/xxmassdeveloper/mpchartexample/BarChartActivityMultiDataset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.github.mikephil.charting.data.DataSet;
2424
import com.github.mikephil.charting.data.Entry;
2525
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
26-
import com.github.mikephil.charting.utils.Highlight;
26+
import com.github.mikephil.charting.highlight.Highlight;
2727
import com.github.mikephil.charting.utils.LargeValueFormatter;
2828
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
2929
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;

MPChartExample/src/com/xxmassdeveloper/mpchartexample/BubbleChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.github.mikephil.charting.data.filter.Approximator.ApproximatorType;
2727
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
2828
import com.github.mikephil.charting.utils.ColorTemplate;
29-
import com.github.mikephil.charting.utils.Highlight;
29+
import com.github.mikephil.charting.highlight.Highlight;
3030
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
3131

3232
import java.util.ArrayList;

MPChartExample/src/com/xxmassdeveloper/mpchartexample/DrawChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import com.github.mikephil.charting.data.LineDataSet;
1919
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
2020
import com.github.mikephil.charting.listener.OnDrawListener;
21-
import com.github.mikephil.charting.utils.Highlight;
21+
import com.github.mikephil.charting.highlight.Highlight;
2222
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
2323

2424
import java.util.ArrayList;

MPChartExample/src/com/xxmassdeveloper/mpchartexample/DynamicalAddingActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import com.github.mikephil.charting.data.LineDataSet;
1616
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
1717
import com.github.mikephil.charting.utils.ColorTemplate;
18-
import com.github.mikephil.charting.utils.Highlight;
18+
import com.github.mikephil.charting.highlight.Highlight;
1919
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
2020

2121
import java.util.ArrayList;

MPChartExample/src/com/xxmassdeveloper/mpchartexample/HorizontalBarChartActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
import com.github.mikephil.charting.data.filter.Approximator;
3030
import com.github.mikephil.charting.data.filter.Approximator.ApproximatorType;
3131
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
32-
import com.github.mikephil.charting.utils.Highlight;
32+
import com.github.mikephil.charting.highlight.Highlight;
33+
import com.github.mikephil.charting.utils.ColorTemplate;
3334
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
3435

3536
import java.util.ArrayList;
@@ -260,6 +261,7 @@ private void setData(int count, float range) {
260261
data.setValueTextSize(10f);
261262
data.setValueTypeface(tf);
262263

264+
mChart.setDrawValueAboveBar(false);
263265
mChart.setData(data);
264266
}
265267

MPChartExample/src/com/xxmassdeveloper/mpchartexample/InvertedLineChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.github.mikephil.charting.data.filter.Approximator;
2424
import com.github.mikephil.charting.data.filter.Approximator.ApproximatorType;
2525
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
26-
import com.github.mikephil.charting.utils.Highlight;
26+
import com.github.mikephil.charting.highlight.Highlight;
2727
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
2828
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
2929

MPChartExample/src/com/xxmassdeveloper/mpchartexample/LineChartActivity1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import com.github.mikephil.charting.data.filter.Approximator.ApproximatorType;
2929
import com.github.mikephil.charting.listener.OnChartGestureListener;
3030
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
31-
import com.github.mikephil.charting.utils.Highlight;
31+
import com.github.mikephil.charting.highlight.Highlight;
3232
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
3333
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
3434

0 commit comments

Comments
 (0)
X Tutup