mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
@@ -35,7 +35,19 @@ export default {
|
||||
expanded: true,
|
||||
controlSetRows: [
|
||||
['color_scheme', 'label_colors'],
|
||||
['treemap_ratio'],
|
||||
[
|
||||
{
|
||||
name: 'treemap_ratio',
|
||||
config: {
|
||||
type: 'TextControl',
|
||||
label: t('Ratio'),
|
||||
renderTrigger: true,
|
||||
isFloat: true,
|
||||
default: 0.5 * (1 + Math.sqrt(5)), // d3 default, golden ratio
|
||||
description: t('Target aspect ratio for treemap tiles.'),
|
||||
},
|
||||
},
|
||||
],
|
||||
['number_format'],
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1046,15 +1046,6 @@ export const controls = {
|
||||
]),
|
||||
},
|
||||
|
||||
treemap_ratio: {
|
||||
type: 'TextControl',
|
||||
label: t('Ratio'),
|
||||
renderTrigger: true,
|
||||
isFloat: true,
|
||||
default: 0.5 * (1 + Math.sqrt(5)), // d3 default, golden ratio
|
||||
description: t('Target aspect ratio for treemap tiles.'),
|
||||
},
|
||||
|
||||
number_format: {
|
||||
type: 'SelectControl',
|
||||
freeForm: true,
|
||||
|
||||
Reference in New Issue
Block a user