I am trying to pass x and y points from .csv files to plot them in the scatter chart of jChart library.
Code:
The error that appears in the log is the following:
Error occurred on line: (Line indicated in the code comments) (Main)
java.lang.NumberFormatException: For input string: "1"
Code:
B4X:
Xc = File.ReadList(File.DirApp, "naca0015x.csv")
Yc = File.ReadList(File.DirApp, "naca0015y.csv")
Dim Series As XYSeries
Series.Initialize("Original Profile")
For i = 0 To Xc.Size - 1 ' Xc and Yc are the same size
Dim x As Double = Xc.Get(i) '(error occurs in this line)
Dim y As Double = Yc.Get(i)
Series.Add(x, y)
Next
ScatterChart.AddSeries(Series)
The error that appears in the log is the following:
Error occurred on line: (Line indicated in the code comments) (Main)
java.lang.NumberFormatException: For input string: "1"