             statsLabel.isHidden = false
 
             detailedStatsViewController.pageStats = pageStats
+    var timeseriesOfEditsCounts: [NSNumber] = [] {
+        didSet {
+            if timeseriesOfEditsCounts.isEmpty != sparklineView.isHidden {
+                setSparklineViewHidden(timeseriesOfEditsCounts.isEmpty)
+            }
+            setViewHidden(sparklineView, hidden: timeseriesOfEditsCounts.isEmpty)
+            sparklineView.dataValues = timeseriesOfEditsCounts
+            sparklineView.updateMinAndMaxFromDataValues()
         }
     }
 

    @IBOutlet private weak var statsLabel: UILabel!

    @IBOutlet private weak var sparklineView: WMFSparklineView!

    @IBOutlet private weak var separator: UIView!


        fatalError("init(coder:) has not been implemented")
    }

    private func setSparklineViewHidden(_ hidden: Bool) {
        self.view.layoutIfNeeded()
        UIView.animate(withDuration: 0.2) {
            self.sparklineView.isHidden = hidden
            self.visibleSparklineViewWidthConstraint.isActive = !hidden
            self.hiddenSparklineViewWidthConstraint.isActive = hidden
            self.sparklineView.alpha = hidden ? 0 : 1
            self.view.setNeedsLayout()
        }
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        statsLabel.isHidden = true
        setSparklineViewHidden(false)

        titleLabel.text = WMFLocalizedString("page-history-revision-history-title", value: "Revision history", comment: "Title for revision history view").uppercased(with: locale)
        pageTitleLabel.text = pageTitle
