[bugfix] allow limiting word cloud (#3902)

This commit is contained in:
Maxime Beauchemin
2017-11-20 10:32:14 -08:00
committed by Grace Guo
parent 1d702f2142
commit 32b38ee2d6
2 changed files with 4 additions and 1 deletions

View File

@@ -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),
},
@@ -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'),

View File

@@ -610,7 +610,8 @@ export const visTypes = {
label: t('Query'),
expanded: true,
controlSetRows: [
['series', 'metric', 'limit'],
['series', 'metric'],
['row_limit', null],
],
},
{