I have a graph which I want to load with data with recent results.
Here is a screenshot to show you what it looks like.
I am able to display the initial data correctly, however after that I cannot update the view to display the new data added to it.
The graph is a view on storyboard with custom class MacawChartView.
class ViewControllerResultsView: ViewController, GADInterstitialDelegate {
@IBOutlet var chartView: MacawChartView!    
override func viewDidLoad() {
    chartView.frame = CGRect(x: w/2 - (w * 0.95)/2, y: h * 0.57, width: w * 0.95, height: w * 0.45)
    chartView.backgroundColor = UIColor.init(displayP3Red: 253/255, green: 254/255, blue: 149/255, alpha: 1)
    chartView.contentMode = .scaleAspectFit
    MacawChartView.playAnimations()
I have tried a lot of different ways to 're-run' the graph so it rebuilds with updated data but cannot get passed the 'coder aDecoder: NSCoder' argument required. Here is the initialiser in MacawChartView.swift
    required init?(coder aDecoder: NSCoder){
    super.init(node: MacawChartView.createChart(), coder: aDecoder)
}
Thanks for any help. Please let me know if more information is needed etc.