Disable scale in DAQ.Tank

Is there any way to disable the Daq.Tank scale on the left?

Looks like using the scale property you can add empty strings for the label but the tickmarks might persist.

Is there any chance that this is possible by now? Even if I set the scale interval for a number bigger than the max value, the min and max scale labels always appear:

image

Maybe there’s a workaround that I’m not aware of…?

This works: I added the showCurrentValue and the scale parameters.

import dash
import dash_daq as daq
import dash_core_components as dcc
import dash_html_components as html

external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)

app.layout = html.Div([
    daq.Tank(
        id='my-tank',
        value=5,
        min=0,
        max=10,
        showCurrentValue=True,
        style={'margin-left': '50px'},
        scale={'custom': {'0': ''}},
    ),
    dcc.Slider(
        id='tank-slider',
        value=5,
        min=0,
        max=10,
    ),
])


@app.callback(
    dash.dependencies.Output('my-tank', 'value'),
    [dash.dependencies.Input('tank-slider', 'value')])
def update_tank(value):
    return value


if __name__ == '__main__':
    app.run_server(debug=True)

Thanks! It worked :slight_smile:

1 Like