Hello,
I am trying to use a list in mpandoridcharts lib. My question is not about the library but arrays
If i set the chart data like this :
mlc1.Chart_High_Data = Array As Float(listhigh.Get(0),listhigh.Get(1)) ....
There is no problem chart loads succesffuly . But my data is huge so i cant add them one by one like list.get(0) , liste.get(1) ...
I have to load the complete list
but when i use
mlc1.Chart_High_Data = Array As Float(listhigh)
I get :
I get this error. Obviosuly i am using wrong code to load the whole list. Where is my mistake ?
Thanks
I am trying to use a list in mpandoridcharts lib. My question is not about the library but arrays
If i set the chart data like this :
mlc1.Chart_High_Data = Array As Float(listhigh.Get(0),listhigh.Get(1)) ....
There is no problem chart loads succesffuly . But my data is huge so i cant add them one by one like list.get(0) , liste.get(1) ...
I have to load the complete list
but when i use
mlc1.Chart_High_Data = Array As Float(listhigh)
I get :
B4X:
java.lang.NumberFormatException: Invalid double: "(ArrayList) [2.84914, 2.8405, 2.8347, 2.81465, 2.8066, 2.85119, 2.9774, 2.9634, 2.94295, 2.94903, 2.95742, 2.9753, 2.96367, 2.97444, 2.9875, 2.977, 2.994, 3.00075, 2.9915, 2.99635, 3.01185, 2.9532, 2.94585, 2.96225, 2.9686, 2.9584, 2.95585, 2.95288, 2.9536, 2.9156, 2.91045, 2.9009, 2.90022, 2.93851, 2.9333, 2.94055, 2.9378, 2.95621, 2.9306, 2.9213]"
I get this error. Obviosuly i am using wrong code to load the whole list. Where is my mistake ?
Thanks