Migrating unique BoxPlot controls (#9392)

This commit is contained in:
Evan Rusackas 2020-03-26 09:29:17 -07:00 committed by GitHub
parent 7e86e38dab
commit ccff6be969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 16 deletions

View File

@ -1214,4 +1214,3 @@ Note the `y_axis_format` is defined under various section for some charts.
| `viewport_latitude` | _N/A_ | |
| `viewport_longitude` | _N/A_ | |
| `viewport_zoom` | _N/A_ | |
| `whisker_options` | _N/A_ | |

View File

@ -17,6 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { formatSelectOptions } from '../../modules/utils';
export default {
controlPanelSections: [
@ -30,7 +31,27 @@ export default {
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['whisker_options', 'x_ticks_layout'],
[
{
name: 'whisker_options',
config: {
type: 'SelectControl',
freeForm: true,
label: t('Whisker/outlier options'),
default: 'Tukey',
description: t(
'Determines how whiskers and outliers are calculated.',
),
choices: formatSelectOptions([
'Tukey',
'Min/max (no outliers)',
'2/98 percentiles',
'9/91 percentiles',
]),
},
},
'x_ticks_layout',
],
],
},
],

View File

@ -889,20 +889,6 @@ export const controls = {
choices: formatSelectOptions(['5', '10', '15', '25', '50', '75', '100']),
},
whisker_options: {
type: 'SelectControl',
freeForm: true,
label: t('Whisker/outlier options'),
default: 'Tukey',
description: t('Determines how whiskers and outliers are calculated.'),
choices: formatSelectOptions([
'Tukey',
'Min/max (no outliers)',
'2/98 percentiles',
'9/91 percentiles',
]),
},
number_format: {
type: 'SelectControl',
freeForm: true,