 (def colors {:not-evaluated      hydro-blue
              :likely             brown
              :clarification      orange
-             :pdo-approved       red ;"#fd8d3c"
+             :pdo-approved       red;ø"#A700A7"
              :remaining-reserves "#109618"                  ; hard green
-             :producing-produced light-green
+             :producing-produced "#64c466"
              :shut-down-produced gray})
 
-
-
-
-
+(def text {:not-evaluated "Ikkje evaluert"
+           :likely "Utvinning sannsynlig"
+           :clarification "Under avklaring"
+           :pdo-approved "PUD*-godkjent"
+           :remaining-reserves "Gjenverande reservar"
+           :producing-produced "Produksjon frå felt i produksjon"
+           :shut-down-produced "Produksjon frå nedstengde felt"})
 
 (def marg 10)
 (def two-marg (* 2 marg))

    [:g {:transform (translate (:margin-left c) (+ (:height (meta header)) (:margin-top c)))}
     (axis/render-axis (:x c))
     (axis/render-axis (:y c))
     (bars c {:p :year :h :value :fill colors} data)]
    [:g {:transform (translate-y (+ (:height (meta header)) available-height))} footer]]])



(def header (opentype/stack
              {:width available-width}
              [{:text "Gjenverande ressursar og historisk produksjon" :font "Roboto Bold" :font-size 30}]))

(def footer (opentype/stack
              {:width available-width}
              [{:margin-top 8 :text "Kjelde: Oljedirektoratet. *Plan for Utvikling og Drift." :font "Roboto Regular" :font-size 14}
               {:text "Diagram © Refsdal.Ivar@gmail.com" :font "Roboto Regular" :font-size 14 :valign :bottom :align :right}]))


