                 :dx                 (- svg-width marg)
                 :text-anchor        "end" :font-size 14}))
 
-(def x-ticks (filter #(.endsWith % "-01") (map :dato data)))
+(def x-ticks (filter #(.endsWith % "-01") x-domain))
 (def end-of-year-data (filter #(.endsWith (:dato %) "-12") data))
 
 (def xx {:type          :ordinal

    [:g (bars (mapv make-rect data))]
    (line/line {:x         (:x c)
                :y         (:y2 c)
                :p         :dato
                :h         :oilprice
                :path      {:stroke-width 3 :stroke oil-fill}
                :dot       (fn [{:keys [p]}] (.endsWith p "-12"))
                :dot-style {:fill oil-fill :r 3.5 :stroke "black" :stroke-width 2}}
               data)
    [:g (map make-txt end-of-year-data)]
    #_detail
    (axis/render-axis (:x c))]

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

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

(defn six-months-ago [s]
  {:pre [(string? s)]}
