             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()
         }
     }
 

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

    override func viewDidLoad() {
        super.viewDidLoad()
        statsLabel.isHidden = true

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

    @IBOutlet private weak var statsLabel: UILabel!

    @IBOutlet private weak var sparklineView: WMFSparklineView!
    private lazy var visibleSparklineViewWidthConstraint = sparklineView.widthAnchor.constraint(greaterThanOrEqualTo: view.widthAnchor, multiplier: 0.4)
    private lazy var hiddenSparklineViewWidthConstraint = sparklineView.widthAnchor.constraint(equalToConstant: 0)

    @IBOutlet private weak var separator: UIView!

