Skip to content

Commit fcd696a

Browse files
committed
Allow setting xVals on Data
1 parent 6f2f6a2 commit fcd696a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,14 @@ public List<String> getXVals() {
376376
return mXVals;
377377
}
378378

379+
/**
380+
* sets the x-values the chart represents
381+
*
382+
*/
383+
public void setXVals(List<String> xVals) {
384+
mXVals = xVals;
385+
}
386+
379387
/**
380388
* Adds a new x-value to the chart data.
381389
*

0 commit comments

Comments
 (0)