I am trying to csv files to plot a series in a scatter chart but it is not letting me, could someone help me solve the problem
Iam using the below for loop for it:
the error that appears in the log file is "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number"
Iam using the below for loop for it:
B4X:
Xc = File.ReadList(File.DirApp, "naca0015x.csv")
Yc = File.ReadList(File.DirApp, "naca0015y.csv")
Dim Series1 As XYSeries
Series1.Initialize("Original Profile")
For i = 0 To Xc.Size - 1 'Xc adn Yc are the same size
Series1.Add(Xc.Get(i),Yc.Get(i))
Next
ScatterChart.AddSeries(Series1)
the error that appears in the log file is "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number"