Skip to content

Commit f74cead

Browse files
committed
Make yVals settable
1 parent e0250bd commit f74cead

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • MPChartLib/src/com/github/mikephil/charting/data

MPChartLib/src/com/github/mikephil/charting/data/DataSet.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ public List<T> getYVals() {
103103
return mYVals;
104104
}
105105

106+
/**
107+
* Sets the array of y-values that this DataSet represents, and calls notifyDataSetChanged()
108+
*
109+
* @return
110+
*/
111+
public void setYVals(List<T> yVals) {
112+
mYVals = yVals;
113+
notifyDataSetChanged();
114+
}
115+
106116
/**
107117
* Provides an exact copy of the DataSet this method is used on.
108118
*

0 commit comments

Comments
 (0)