 (defn- set-legend!
   [^Styler styler
    {:keys [background-color border-color font padding
-           position series-line-length visible]}]
+           position series-line-length visible?]}]
   (doto-cond
    styler
    background-color (.setLegendBackgroundColor (colors background-color background-color))

      (.getStyler chart)
      theme (.setTheme (themes theme theme))
      render-style (.setDefaultSeriesRenderStyle (pie-render-styles render-style))
      (not (nil? circular)) (.setCircular (boolean circular))
      (not (nil? draw-all-annotations)) (.setDrawAllAnnotations (boolean draw-all-annotations))
      annotation-distance (.setAnnotationDistance (double annotation-distance))
      donut-thickness (.setDonutThickness (double donut-thickness))
      start-angle (.setStartAngleInDegrees (double start-angle))

  ([series]
   (pie-chart series {}))
  ([series
    {:keys [width height title circular? theme render-style annotation-distance
            start-angle draw-all-annotations? donut-thickness annotation-type]
     :or {width 640 height 500}
     :as styling}]
   {:pre [series]}
