Skip to content

Commit 91f95ca

Browse files
committed
Merge pull request #35 from 10gen/INT-158-unique-samples-across-all-types
hack for demo: show unique values across all types
2 parents d8ad6a2 + 64646a8 commit 91f95ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scout-ui/src/minicharts/unique.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = VizView.extend({
1515
deps: ['orderedValues'],
1616
cache: false,
1717
fn: function() {
18-
return _(this.model.values.sample(15))
18+
// @hack for demo: show values across all types
19+
return _(this.model.collection.parent.values.sample(15))
1920
.map(function(x) {
2021
return x.value;
2122
})

0 commit comments

Comments
 (0)