Migrating unique BoxPlot controls (#9392)
This commit is contained in:
parent
7e86e38dab
commit
ccff6be969
|
|
@ -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_ | |
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue