 (defn set-stroke-style [ ctx style-name ]
   (if-let [ style (get stroke-styles style-name false) ]
     (do
-      (aset ctx "lineWidth" (:line-width style))      
+      (aset ctx "lineWidth" (:line-width style))
       (aset ctx "strokeStyle" (:stroke-style style))
       (.setLineDash ctx (:line-dash style)))
     (.error js/console "Unknown stroke style:" (pr-str style-name))))

                (draw-x-grid ctx w h x-range)
                (with-preserved-ctx ctx
                  (clip-rect ctx 0 0 w h)
                  (draw-series-line ctx data x-range y-range w h))))))) 

(defn draw-series-background [ ctx w h ]
  (with-preserved-ctx ctx

   {:line-width 0
    :stroke-style "#0000FF"
    :line-dash #js [ ]}

   :frame
   {:line-width 1
    :stroke-style "#000000"
