如何调整 Plotly Dash DAQ 组件的边距?

How to adjust the margins in Plotly Dash DAQ components?

我使用 Plotly dash DAQ gauge component 创建了一个仪表图,需要减少底部边距,因为它太多了。有什么想法吗?

我已经尝试在样式组件中使用多个配置作为边距(参见代码示例),但这没有用。

import dash_daq as daq

daq.Gauge(
    style={
        'color': Colors.text,
        'marginBottom': '0px',
        'margin-bottom': '0px'
    },
    min=0,
    max=100,
    value=25,
    size=200,
    showCurrentValue=True,
    units='%',
    labelPosition='bottom',
    label={
        'label': 'Female',
        'style': {
            'color': Colors.text,
            'fontSize': 14
        }
    }
)

尝试负边距:

import dash_daq as daq

daq.Gauge(
    style={
        'color': Colors.text,

        'margin-bottom': -50 #Or whatever number suits your needs
    },
    min=0,
    max=100,
    value=25,
    size=200,
    showCurrentValue=True,
    units='%',
    labelPosition='bottom',
    label={
        'label': 'Female',
        'style': {
            'color': Colors.text,
            'fontSize': 14
        }
    }
)