               (.selectAll "g.x.axis")
               (.call x-axis))
 
-          ;; Селектор [<--selector-->]
+          ;; Селектор [<--selector-->] ----------------------------------------------------------------------------
           (when on-brushend-fn
             (let [brush (-> js/d3 .-svg .brush (.x x-scale))]
               (.on brush "brushend"
                    (fn [v]
                      (let [selected (js->clj (.extent brush))
-                           [x1 x2] selected]
+                           [x1 x2]  selected]
 
                        ;; Левая пунктирная линия
                        (-> chart-pano

                .remove))


          ;; Масштабные линейки
          (-> chart-pano
              (.selectAll "g.y.axis")
              (.call y-axis))


              {:keys [x-value-fn
                      yx-schema
                      data]} @app


              ;; Размерность x
              x-scale   (-> js/d3 .-time  .scale
                            (.domain (d3c/min-max #(-> % x-value-fn .getTime) min max data))
                            ;;(.domain (.extent js/d3 data :pdate))
                            (.range #js [0 chart-width]))
              ;; Размерность y
              all-y     (->> yx-schema
                             (map :y-value-fn)
                             (reduce
                              (fn [a y-value-fn]
                                (let [[min max] (d3c/min-max y-value-fn min 1 max 1.1 data)]
                                  (conj a min max)))
                              []))
              y-min-max #js [(or domain-y-min (apply min all-y))
                             (or domain-y-max (apply max all-y))]
              y-scale   (-> js/d3 .-scale .linear
                            ;;(.domain (min-max y-value-fn min 1 max 1.1 data))
                            (.domain y-min-max)
                            (.range  #js [chart-height 0]))

              ;; Линейки
              x-axis (-> js/d3 .-svg .axis (.scale x-scale) (.orient "bottom"))
              y-axis (-> js/d3 .-svg .axis (.scale y-scale) (.orient "left"))



              yx-schema-array (into-array yx-schema)

              ]

          ;; PATHES ------------------------------------------------------------------------------------------------
          (let [paths (-> chart-pano
                          (.select "g.charting.pathes")
                          (.selectAll "path")
