File tree 1 file changed +12
-4
lines changed
modules/incanter-charts/src/incanter
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1137
1137
_group-by (when (:group-by opts)
1138
1138
(data-as-list (:group-by opts) data))
1139
1139
x-groups (when _group-by
1140
- (map #($ :col-0 %)
1141
- (vals ($group-by :col-1 (conj-cols _x _group-by)))))
1140
+ (let [x-groupped (->> (conj-cols _x _group-by)
1141
+ ($group-by :col-1 ))]
1142
+ (->> (distinct _group-by)
1143
+ (map #(->>
1144
+ (get x-groupped {:col-1 %})
1145
+ ($ :col-0 ))))))
1142
1146
y-groups (when _group-by
1143
- (map #($ :col-0 %)
1144
- (vals ($group-by :col-1 (conj-cols _y _group-by)))))
1147
+ (let [y-groupped (->> (conj-cols _y _group-by)
1148
+ ($group-by :col-1 ))]
1149
+ (->> (distinct _group-by)
1150
+ (map #(->>
1151
+ (get y-groupped {:col-1 %})
1152
+ ($ :col-0 ))))))
1145
1153
__x (in-coll (if x-groups (first x-groups) _x))
1146
1154
__y (in-coll (if y-groups (first y-groups) _y))
1147
1155
title (or (:title opts) " " )
You can’t perform that action at this time.
0 commit comments