Skip to content

Commit

Permalink
[bugfix] allow limiting word cloud (apache#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent 8eddcd7 commit 085de13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions superset/assets/javascripts/explore/stores/controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ export const controls = {
type: 'SelectControl',
freeForm: true,
label: t('Row limit'),
validators: [v.integer],
default: null,
choices: formatSelectOptions(ROW_LIMIT_OPTIONS),
},
Expand All @@ -737,6 +738,7 @@ export const controls = {
type: 'SelectControl',
freeForm: true,
label: t('Series limit'),
validators: [v.integer],
choices: formatSelectOptions(SERIES_LIMITS),
default: 50,
description: t('Limits the number of time series that get displayed'),
Expand Down
3 changes: 2 additions & 1 deletion superset/assets/javascripts/explore/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ export const visTypes = {
label: t('Query'),
expanded: true,
controlSetRows: [
['series', 'metric', 'limit'],
['series', 'metric'],
['row_limit', null],
],
},
{
Expand Down

0 comments on commit 085de13

Please sign in to comment.