I am using MPAndroid chart to plot a cubic graph using a few points. Currently, the library joins those points and plots a smooth graph. The code I am using is :
ArrayList<String> xVals = new ArrayList<String>();
for (int i = 0; i < count; i++) {
xVals.add((1990 +i) + "");
}
ArrayList<Entry> vals1 = new ArrayList<Entry>();
for (int i = 0; i < count; i++) {
float mult = (range + 1);
float val = (float) (Math.random() * mult) + 20;// + (float)
// ((mult *
// 0.1) / 10);
vals1.add(new Entry(val, i));
}
// create a dataset and give it a type
LineDataSet set1 = new LineDataSet(vals1, "DataSet 1");
set1.setDrawCubic(true);
LineData data = new LineData(xVals, set1);
I would like to get a list of ALL the intermediate points that the library plots between the ones given by me in order to obtain a smooth curve in an array. Is there any way to achieve this ?
Thanks