   (cond
     (< usage 75) {:name  "used"
                   :value usage
-                  :val   value
+                  :hover value
                   :color "#52B359"}
     (> usage 90) {:name  "used"
                   :value usage
-                  :val   value
+                  :hover value
                   :color "#d32f2f"}
     :else {:name  "used"
            :value usage
-           :val   value
+           :hover value
            :color "#ffa000"}))
 
 (rum/defc resource-pie < rum/static

        data [(resource-used usage value)
              {:name  "free"
               :value (- 100 usage)
               :val   (- limit value)
               :color "#ccc"}]]
    (chart/pie
      data

      "Swarmpit-stat-graph"
      id
      {:formatter (fn [value name props]
                    (let [hover-value (.-hover (.-payload props))]
                      (case type
                        :disk (render-capacity hover-value false)
                        :memory (render-capacity hover-value true)
                        :cpu (str (render-cores hover-value) " vCPU")
                        hover-value)))})))