     (axis/render-axis (:y c))
     (axis/render-axis (:y2 c))
     [:g (bars (mapv make-rect data))]
+    [:g (add-oil-price-line)]
     [:g (map make-txt end-of-year-data)]
-    [:g (add-oil-price-line)]
     detail
-
     (axis/render-axis (:x c))]
    [:g {:transform (core/translate 0 (+ (:height (meta header)) available-height))} footer]
    [:g {:transform (core/translate 0 (+ (:height (meta header)) available-height))} footer2]

            [clj-simple-chart.rect :as rect]
            [clj-simple-chart.point :as point]
            [clj-simple-chart.opentype :as opentype]
            [clojure.string :as string]))

(def ordinaer (keyword "Ordinær skatt på utvinning av petroleum"))
(def saerskatt (keyword "Særskatt på utvinning av petroleum"))

(def data (->> petroskatt/twelve-mma-mrd
               (mapv #(assoc % :year (read-string (subs (:dato %) 0 4))))
               (mapv #(assoc % :sum (+ (get % ordinaer) (get % saerskatt))))
               #_(filter #(>= (:year %) 2010))))

(def oil-date-to-usd brentoilprice/brent-12-mma-dato-to-usd)

(def x-domain (map :dato data))



(def x (:x c))
(def y (:y c))
(def y2 (:y2 c))

(def xfn (partial point/center-point x))
(def yfn (partial point/center-point y))
