Im trying a few things out with the AChart for android. Ive got a example working fine but want to change it slightly. Currently i have
List<double[]> values = new ArrayList<double[]>();
values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030, 11200, 9500, 10500,
11600, 13500 });
I want to populate it with my own data. I have a string variable that will be passed from a file.
String YTDData = "12.3,45,56.78,12,1,23.45"
How can i populate the values list with the contents of YTDData?
thanks
You can loop through the data and convert the string into an array and then to a double array.