Skip to content

Commit b0edeb7

Browse files
committed
fix CubicLineChartActivity setData, use actual count
1 parent c786b6c commit b0edeb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected void onCreate(Bundle savedInstanceState) {
105105
private void setData(int count, float range) {
106106

107107
ArrayList<Entry> values = new ArrayList<>();
108-
Double[] sampleValues = DataTools.Companion.getValues(100);
108+
Double[] sampleValues = DataTools.Companion.getMuchValues(count);
109109

110110
for (int i = 0; i < count; i++) {
111111
float val = (float) (sampleValues[i].floatValue() * (range + 1)) + 20;

0 commit comments

Comments
 (0)