       (.attr {:transform (str "translate(" (margin :left) "," (margin :top) ")")})))
 
 
-; Data ↦ Element
 (def bar2
   (-> svg2
       (.selectAll "g.bar")

    :news-frequencies nil
    :tweet-count 0}))

(fw/watch-and-reload
  ;; :websocket-url "ws://localhost:3449/figwheel-ws" default
 :jsload-callback (fn [] (print "reloaded"))) ;; optional callback


;; --- D3 ---
(def data [78 680 345 376 351])

(def margin {:top 50 :right 50 :bottom 50 :left 50})
(def width (- (.-clientWidth (. js/document (getElementById "tweets-count"))) (margin :left) (margin :right)))
(def height (- 500  (margin :top) (margin :bottom)))

(def x
  (-> d3
      .-scale
      (.ordinal)
      (.domain (vec (range (count data))))
      (.rangeRoundBands [0 width] 0.5)))

(def y
  (-> d3
      .-scale
