         svg (-> (get-svg ".line-graph-modal")
                 (.attr "width" (+ width (:right margin) (:left margin)))
                 (.attr "height" (+ height (:top margin) (:bottom margin))))
-        line-group (-> (.append svg "g")
+        line-group (-> (get-g ".line-group" svg)
+                       (.attr "class" "line-group")
                        (.attr "transform" (str "translate(" (:left margin) "," 0 ")")))
         domain-max (.max js/d3 (clj->js (map #(:val %) graph-data)))
         domain-min (.min js/d3 (clj->js (map #(:val %) graph-data)))

                         (.interpolate "linear"))
        y-axis (graph/create-axis total-scale :right width tick-padding graph/number-formatter y-tick-count)
        x-axis (graph/create-axis time-scale :top height tick-padding graph/month-formatter x-tick-count)
        x-axis-group (-> (.append line-group "g")
                         (.attr "transform" (str "translate(0 ," (- height 25) ")"))
                         (.attr "class" "x axis")
                         (.call x-axis)

                         (.attr "y" 12)
                         (.attr "dx" "-1.5em")
                         (.style "text-anchor" "start"))
        y-axis-group (-> (get-g ".axis.y" line-group)
                         (.attr "transform" (str "translate(0, -25)"))
                         (.attr "class" "y axis")
                         (.call y-axis)
