 (ns com.hypirion.clj-xchart
-  (:import (org.knowm.xchart XYChart
+  (:import (org.knowm.xchart BubbleChart
+                             XYChart
                              PieChart
                              CategoryChart
+                             BubbleSeries$BubbleSeriesRenderStyle
                              CategorySeries$CategorySeriesRenderStyle
                              PieSeries$PieSeriesRenderStyle
                              XYSeries$XYSeriesRenderStyle

      chart
      title (.setTitle title)))))

(defn pie-chart
  "Returns a pie chart"
  ([series]

   :scatter CategorySeries$CategorySeriesRenderStyle/Scatter
   :stick CategorySeries$CategorySeriesRenderStyle/Stick})

(def bubble-render-styles
  {:round BubbleSeries$BubbleSeriesRenderStyle/Round})

(def text-alignments
  {:centre Styler$TextAlignment/Centre
