Skip to content

Commit 8268f26

Browse files
authored
Merge pull request #147 from AppDevNext/RemoveDeprecation
Remove deprecation
2 parents 1935815 + da0b3ba commit 8268f26

12 files changed

+17
-18
lines changed

MPChartExample/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ dependencies {
4343
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
4444
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.1'
4545
}
46-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void setData(int count, float range) {
158158
if (chart.getData() != null &&
159159
chart.getData().getDataSetCount() > 0) {
160160
set1 = (BarDataSet) chart.getData().getDataSetByIndex(0);
161-
set1.setValues(values);
161+
set1.setEntries(values);
162162
chart.getData().notifyDataChanged();
163163
chart.notifyDataSetChanged();
164164

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
155155
set2 = (BarDataSet) chart.getData().getDataSetByIndex(1);
156156
set3 = (BarDataSet) chart.getData().getDataSetByIndex(2);
157157
set4 = (BarDataSet) chart.getData().getDataSetByIndex(3);
158-
set1.setValues(values1);
159-
set2.setValues(values2);
160-
set3.setValues(values3);
161-
set4.setValues(values4);
158+
set1.setEntries(values1);
159+
set2.setEntries(values2);
160+
set3.setEntries(values3);
161+
set4.setEntries(values4);
162162
chart.getData().notifyDataChanged();
163163
chart.notifyDataSetChanged();
164164

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private void setData(int count) {
123123
if (chart.getData() != null &&
124124
chart.getData().getDataSetCount() > 0) {
125125
set = (BarDataSet) chart.getData().getDataSetByIndex(0);
126-
set.setValues(entries);
126+
set.setEntries(entries);
127127
chart.getData().notifyDataChanged();
128128
chart.notifyDataSetChanged();
129129
} else {

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/BarChartPositiveNegative.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private void setData(List<Data> dataList) {
124124
if (chart.getData() != null &&
125125
chart.getData().getDataSetCount() > 0) {
126126
set = (BarDataSet) chart.getData().getDataSetByIndex(0);
127-
set.setValues(values);
127+
set.setEntries(values);
128128
chart.getData().notifyDataChanged();
129129
chart.notifyDataSetChanged();
130130
} else {

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/CubicLineChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void setData(int count, float range) {
117117
if (chart.getData() != null &&
118118
chart.getData().getDataSetCount() > 0) {
119119
set1 = (LineDataSet) chart.getData().getDataSetByIndex(0);
120-
set1.setValues(values);
120+
set1.setEntries(values);
121121
chart.getData().notifyDataChanged();
122122
chart.notifyDataSetChanged();
123123
} else {

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/FilledLineActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ private void setData(float range) {
102102
chart.getData().getDataSetCount() > 0) {
103103
set1 = (LineDataSet) chart.getData().getDataSetByIndex(0);
104104
set2 = (LineDataSet) chart.getData().getDataSetByIndex(1);
105-
set1.setValues(values1);
106-
set2.setValues(values2);
105+
set1.setEntries(values1);
106+
set2.setEntries(values2);
107107
chart.getData().notifyDataChanged();
108108
chart.notifyDataSetChanged();
109109
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private void setData(int count, float range) {
135135
if (chart.getData() != null &&
136136
chart.getData().getDataSetCount() > 0) {
137137
set1 = (BarDataSet) chart.getData().getDataSetByIndex(0);
138-
set1.setValues(values);
138+
set1.setEntries(values);
139139
chart.getData().notifyDataChanged();
140140
chart.notifyDataSetChanged();
141141
} else {

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/HorizontalBarNegativeChartActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private void setData(int count, float range) {
135135
if (chart.getData() != null &&
136136
chart.getData().getDataSetCount() > 0) {
137137
set1 = (BarDataSet) chart.getData().getDataSetByIndex(0);
138-
set1.setValues(values);
138+
set1.setEntries(values);
139139
chart.getData().notifyDataChanged();
140140
chart.notifyDataSetChanged();
141141
} else {

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartDualAxisActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ private void setData(int count, float range) {
164164
set1 = (LineDataSet) chart.getData().getDataSetByIndex(0);
165165
set2 = (LineDataSet) chart.getData().getDataSetByIndex(1);
166166
set3 = (LineDataSet) chart.getData().getDataSetByIndex(2);
167-
set1.setValues(values1);
168-
set2.setValues(values2);
169-
set3.setValues(values3);
167+
set1.setEntries(values1);
168+
set2.setEntries(values2);
169+
set3.setEntries(values3);
170170
chart.getData().notifyDataChanged();
171171
chart.notifyDataSetChanged();
172172
} else {

0 commit comments

Comments
 (0)