Fix parameter order for mpandroidchart 3.0
This commit is contained in:
parent
b2065fd91f
commit
f58b1f33c6
|
@ -89,6 +89,7 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
|
||||||
return mChartDirty;
|
return mChartDirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public abstract String getTitle();
|
public abstract String getTitle();
|
||||||
|
|
||||||
public boolean supportsHeartrate(GBDevice device) {
|
public boolean supportsHeartrate(GBDevice device) {
|
||||||
|
@ -548,11 +549,11 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
|
||||||
protected abstract void setupLegend(Chart chart);
|
protected abstract void setupLegend(Chart chart);
|
||||||
|
|
||||||
protected BarEntry createBarEntry(float value, int index) {
|
protected BarEntry createBarEntry(float value, int index) {
|
||||||
return new BarEntry(value, index);
|
return new BarEntry(index, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Entry createLineEntry(float value, int index) {
|
protected Entry createLineEntry(float value, int index) {
|
||||||
return new Entry(value, index);
|
return new Entry(index, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected BarDataSet createActivitySet(List<BarEntry> values, List<Integer> colors, String label) {
|
protected BarDataSet createActivitySet(List<BarEntry> values, List<Integer> colors, String label) {
|
||||||
|
|
Loading…
Reference in New Issue