Skip to content

Commit d23abcd

Browse files
committed
unnecessary select removed
1 parent 677b1f4 commit d23abcd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Clojure-Websockets/MainApp/src/cljs/birdwatch/charts/wordcount_chart.cljs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
(def ts-w (aget ts-elem "offsetWidth"))
1616
(def text-defaults {:stroke "none" :fill "#DDD" :fontWeight 500 :fontSize "0.8em" :dy ".35em" :textAnchor "end"})
1717

18-
(def opts1 [[10 "10 seconds"][30 "30 seconds"][60 "1 minute"][300 "5 minutes"][600 "10 minutes"]])
19-
(def opts2 [[10 "10 tweets"][100 "100 tweets"][500 "500 tweets"][1000 "1000 tweets"]])
18+
(def opts [[10 "10 tweets"][100 "100 tweets"][500 "500 tweets"][1000 "1000 tweets"]])
2019

2120
(def arrows
2221
{:RIGHT ["#428bca" "-600,100 200,100 -200,500 100,500 600,0 100,-500 -200,-500 200,-100 -600,-100 "]
@@ -54,12 +53,12 @@
5453
(for [[idx [text cnt]] indexed]
5554
^{:key text}[bar text cnt (* idx 15) 15 (* (- ts-w 190) (/ cnt mx)) idx])
5655
[:line {:transform "translate(168, 0)" :y 0 :y2 (* cnt 15) :stroke "black"}]]]
57-
[:p.legend [:strong "1st trend indicator:"] " position changes in last "
58-
[:select {:defaultValue 300000}
59-
(for [[v t] opts1] ^{:key v} [:option {:value (* v 1000)} t])]]
60-
[:p.legend [:strong "2nd trend indicator:"] " ratio change termCount / totalTermsCounted over last "
56+
[:p.legend [:strong "1st trend indicator:"]
57+
" recent position changes"]
58+
[:p.legend [:strong "2nd trend indicator:"]
59+
" ratio change termCount / totalTermsCounted over last "
6160
[:select {:defaultValue 100}
62-
(for [[v t] opts2] ^{:key v} [:option {:value v} t])]]]))
61+
(for [[v t] opts] ^{:key v} [:option {:value v} t])]]]))
6362

6463
(r/render-component [wordcount-barchart] ts-elem)
6564

0 commit comments

Comments
 (0)