Closed DevCSI closed 7 years ago
Hi! You are assigning the array "myPoin" every iteration. So only the last point is included in the array.
As mentioned in the README.md, you can either set the whole array or append individual points. Have a look: Add points to the timeline
Try something like:
let data = ["2011", "2012", "2013", "2014", "2015"]
data.forEach { str in
let point = ISPoint(title: str)
timeline.points.append(point)
}
How to Add Objects from Array I tried this but it only adding last Object
let dataArr = ["2011","2012","2013","2014","2015"]