You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a PieChart from my data stored in Firebase DB. My probem is that the legend contains only the first element of the array. If i put the example code in ViewDidLoad (without any observer) all works good. How can I refresh legend to be regenerated?
firebase.observeEventType(.Value, withBlock: { snapshot in
for item in snapshot.children {
......
}
self.setChart(self.answers, values: self.counts)
The text was updated successfully, but these errors were encountered:
Hi.
I'm trying to create a PieChart from my data stored in Firebase DB. My probem is that the legend contains only the first element of the array. If i put the example code in ViewDidLoad (without any observer) all works good. How can I refresh legend to be regenerated?
The text was updated successfully, but these errors were encountered: