mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
[nvd3] fix bubble axis (#3332)
number of issues are addressed here: * x axis formatting doesn't apply in bubble chart * adding option to show/hide bounds of x and y axis * with a flaky 'auto' margin mode, allow user to specify hard values or auto * x label font-size was different than y axis * show more options and reorg Control panels for Axes in `line` viz
This commit is contained in:
committed by
GitHub
parent
e31ad22f50
commit
a7ba6e4a5d
@@ -94,6 +94,7 @@ export const controls = {
|
||||
y_axis_bounds: {
|
||||
type: 'BoundsControl',
|
||||
label: 'Y Axis Bounds',
|
||||
renderTrigger: true,
|
||||
default: [null, null],
|
||||
description: (
|
||||
'Bounds for the Y axis. When left empty, the bounds are ' +
|
||||
@@ -414,7 +415,18 @@ export const controls = {
|
||||
label: 'Bottom Margin',
|
||||
choices: formatSelectOptions(['auto', 50, 75, 100, 125, 150, 200]),
|
||||
default: 'auto',
|
||||
description: 'Bottom marging, in pixels, allowing for more room for axis labels',
|
||||
renderTrigger: true,
|
||||
description: 'Bottom margin, in pixels, allowing for more room for axis labels',
|
||||
},
|
||||
|
||||
left_margin: {
|
||||
type: 'SelectControl',
|
||||
freeForm: true,
|
||||
label: 'Left Margin',
|
||||
choices: formatSelectOptions(['auto', 50, 75, 100, 125, 150, 200]),
|
||||
default: 'auto',
|
||||
renderTrigger: true,
|
||||
description: 'Left margin, in pixels, allowing for more room for axis labels',
|
||||
},
|
||||
|
||||
granularity: {
|
||||
@@ -1005,6 +1017,14 @@ export const controls = {
|
||||
description: 'Whether to display the min and max values of the X axis',
|
||||
},
|
||||
|
||||
y_axis_showminmax: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Y bounds',
|
||||
renderTrigger: true,
|
||||
default: true,
|
||||
description: 'Whether to display the min and max values of the Y axis',
|
||||
},
|
||||
|
||||
rich_tooltip: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Rich Tooltip',
|
||||
|
||||
Reference in New Issue
Block a user