           (.append "rect")
           (.attr #js {"width" (:square-size legend-dimensions)
                       "height" (:square-size legend-dimensions)
-                      "class" #(.-class %)
+                      "class" #(.-class_name %)
                       "transform"
                       (fn [item i]
                         (gstring/format "translate(%s,%s)" 0  (- (+ (:square-size legend-dimensions)))))}))

                           :item-height 14   ; assume font is 14px
                           :spacing 4
                           }
        left-legend [{:class "success"
                      :text "Passed"}
                     {:class "failed"
                      :text "Failed"}
                     {:class "canceled"
                      :text "Canceled"}]
        right-legend [{:class "queue"
                      :text "Queue time"}]

          (.append "rect")
          (.attr #js {"width" (:square-size legend-dimensions)
                      "height" (:square-size legend-dimensions)
                      "class" #(.-class_name %)
                      "transform"
                      (fn [item i]
                        (gstring/format "translate(%s,%s)" 0  (- (+ (:square-size legend-dimensions)))))}))
