     
     private var barPath = UIBezierPath()
     private var barWidth: CGFloat = 4
-    
-    init(frame: CGRect, barWidth: CGFloat, barColor: UIColor, barLineWidth: CGFloat, barLineColor: UIColor) {
+    private var shouldRoundCorners = false
+    
+    init(frame: CGRect, barWidth: CGFloat, barColor: UIColor, barLineWidth: CGFloat, barLineColor: UIColor, shouldRoundCorners: Bool) {
         super.init(viewportWidth: frame.size.width, viewportHeight: frame.size.height)
         
         self.barWidth = barWidth
         self.lineWidth = barLineWidth
         self.strokeColor = barLineColor.cgColor
         self.fillColor = barColor.cgColor
+        self.shouldRoundCorners = shouldRoundCorners
         
         self.lineJoin = lineJoin
         self.lineCap = lineCap

                                       barWidth: barWidth,
                                       barColor: barColor,
                                       barLineWidth: barLineWidth,
                                       barLineColor: barLineColor)
            barLayer?.graphViewDrawingDelegate = self
            drawingView.layer.insertSublayer (barLayer!, below: lineLayer)
        }

    @IBInspectable open var barLineWidth: CGFloat = 1
    /// The colour of the bar outline
    @IBInspectable open var barLineColor: UIColor = UIColor.darkGray
    /// Whether the bars should be drawn with rounded corners
    @IBInspectable open var shouldRoundBarCorners: Bool = false
    
    // Fill Styles
    // ###########
