     var values: [AnyObject]?
     var details = [ChartDetailValue]()
     
-    var labelValuesByRow = [Int: UILabel]()
-    var rowByLabelValues = [UILabel: Int]()
+    var valuesByRow = [Int: String]()
 
     var color: UIColor {
         set {

            attrString = NSMutableAttributedString(string: str)
            attrString.addAttribute(NSFontAttributeName, value: fontBold!, range: NSRange(location: 0,length: str.utf16Count - 6))
            attrString.addAttribute(NSFontAttributeName, value: font!, range: NSRange(location: str.utf16Count - 5,length: 5))
            sliderHigherLabel.attributedText = attrString            
        }
    }
    

    
    func setNewValueAnimatedIfChanged(cell: HBChartDetailCell, indexPath: NSIndexPath, newValue: NSString) {
        var animated = false
        if let value = valuesByRow[indexPath.row] {
            if value != newValue {
                animated = true
                UIView.animateWithDuration(1.0, animations: {
                    cell.value.alpha = 0
                }) { (Bool) -> Void in
                    cell.value.text = newValue
                    UIView.animateWithDuration(1.0, animations: {
                        cell.value.alpha = 1
                    })
                }
            }
