Skip to content

Commit b5cf9e1

Browse files
committed
Remove highlight-arrow feature, this can be done by markerview
1 parent 66434c6 commit b5cf9e1

12 files changed

Lines changed: 40 additions & 107 deletions

File tree

‎MPChartExample/res/menu/bar.xml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
android:id="@+id/actionToggleHighlight"
1010
android:title="Toggle Highlight">
1111
</item>
12-
<item
13-
android:id="@+id/actionToggleHighlightArrow"
14-
android:title="Toggle Highlight Arrow">
15-
</item>
1612
<item
1713
android:id="@+id/animateX"
1814
android:title="Animate X">

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/AnotherBarActivity.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
130130
mChart.invalidate();
131131
break;
132132
}
133-
case R.id.actionToggleHighlightArrow: {
134-
if (mChart.isDrawHighlightArrowEnabled())
135-
mChart.setDrawHighlightArrow(false);
136-
else
137-
mChart.setDrawHighlightArrow(true);
138-
mChart.invalidate();
139-
break;
140-
}
141133
case R.id.animateX: {
142134
mChart.animateX(3000);
143135
break;

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
178178
mChart.invalidate();
179179
break;
180180
}
181-
case R.id.actionToggleHighlightArrow: {
182-
if (mChart.isDrawHighlightArrowEnabled())
183-
mChart.setDrawHighlightArrow(false);
184-
else
185-
mChart.setDrawHighlightArrow(true);
186-
mChart.invalidate();
187-
break;
188-
}
189181
case R.id.animateX: {
190182
mChart.animateX(3000);
191183
break;

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
151151
}
152152
break;
153153
}
154-
case R.id.actionToggleHighlightArrow: {
155-
if (mChart.isDrawHighlightArrowEnabled())
156-
mChart.setDrawHighlightArrow(false);
157-
else
158-
mChart.setDrawHighlightArrow(true);
159-
mChart.invalidate();
160-
break;
161-
}
162154
case R.id.actionSave: {
163155
// mChart.saveToGallery("title"+System.currentTimeMillis());
164156
mChart.saveToPath("title" + System.currentTimeMillis(), "");

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/BarChartActivitySinus.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
152152
mChart.invalidate();
153153
break;
154154
}
155-
case R.id.actionToggleHighlightArrow: {
156-
if (mChart.isDrawHighlightArrowEnabled())
157-
mChart.setDrawHighlightArrow(false);
158-
else
159-
mChart.setDrawHighlightArrow(true);
160-
mChart.invalidate();
161-
break;
162-
}
163155
case R.id.animateX: {
164156
mChart.animateX(1500);
165157
break;

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
171171
mChart.invalidate();
172172
break;
173173
}
174-
case R.id.actionToggleHighlightArrow: {
175-
if (mChart.isDrawHighlightArrowEnabled())
176-
mChart.setDrawHighlightArrow(false);
177-
else
178-
mChart.setDrawHighlightArrow(true);
179-
mChart.invalidate();
180-
break;
181-
}
182174
case R.id.animateX: {
183175
mChart.animateX(3000);
184176
break;

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/StackedBarActivity.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
146146
mChart.invalidate();
147147
break;
148148
}
149-
case R.id.actionToggleHighlightArrow: {
150-
if (mChart.isDrawHighlightArrowEnabled())
151-
mChart.setDrawHighlightArrow(false);
152-
else
153-
mChart.setDrawHighlightArrow(true);
154-
mChart.invalidate();
155-
break;
156-
}
157149
case R.id.animateX: {
158150
mChart.animateX(3000);
159151
break;

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/StackedBarActivityNegative.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
179179
mChart.invalidate();
180180
break;
181181
}
182-
case R.id.actionToggleHighlightArrow: {
183-
if (mChart.isDrawHighlightArrowEnabled())
184-
mChart.setDrawHighlightArrow(false);
185-
else
186-
mChart.setDrawHighlightArrow(true);
187-
mChart.invalidate();
188-
break;
189-
}
190182
case R.id.animateX: {
191183
mChart.animateX(3000);
192184
break;

‎MPChartLib/src/main/java/com/github/mikephil/charting/charts/BarChart.java‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,23 @@ public RectF getBarBounds(BarEntry e) {
129129
return bounds;
130130
}
131131

132-
/**
133-
* set this to true to draw the highlightning arrow
134-
*
135-
* @param enabled
136-
*/
137-
public void setDrawHighlightArrow(boolean enabled) {
138-
mDrawHighlightArrow = enabled;
139-
}
140-
141-
/**
142-
* returns true if drawing the highlighting arrow is enabled, false if not
143-
*
144-
* @return
145-
*/
146-
public boolean isDrawHighlightArrowEnabled() {
147-
return mDrawHighlightArrow;
148-
}
132+
// /**
133+
// * set this to true to draw the highlightning arrow
134+
// *
135+
// * @param enabled
136+
// */
137+
// public void setDrawHighlightArrow(boolean enabled) {
138+
// mDrawHighlightArrow = enabled;
139+
// }
140+
//
141+
// /**
142+
// * returns true if drawing the highlighting arrow is enabled, false if not
143+
// *
144+
// * @return
145+
// */
146+
// public boolean isDrawHighlightArrowEnabled() {
147+
// return mDrawHighlightArrow;
148+
// }
149149

150150
/**
151151
* If set to true, all values are drawn above their bars, instead of below their top.

‎MPChartLib/src/main/java/com/github/mikephil/charting/charts/CombinedChart.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ public boolean isDrawValueAboveBarEnabled() {
167167
return mDrawValueAboveBar;
168168
}
169169

170-
@Override
171-
public boolean isDrawHighlightArrowEnabled() {
172-
return mDrawHighlightArrow;
173-
}
174-
175170
/**
176171
* set this to true to draw the highlightning arrow
177172
*

0 commit comments

Comments
 (0)