I’m very aware that I made a similar post here: RangeSlider Label Gets Cut Off
But, this is different in the sense that before, the Label was split between 2 lines. Now, I don’t even see the last label.
html.Div(children=[
dcc.Slider(id='bin-selector', min=0.90, max=1.0, value=1.0, step=None, #overwrite default step=1
marks={0.90:{'label':'Bin:0.90'}, 0.95:{'label':'Bin:0.95'},
0.98:{'label':'Bin:0.98'}, 0.99:{'label':'Bin:0.99'},
1.0:{'label':'Bin:1.0'}})
], style={'width':'600px', 'text-align':'center', 'margin':'auto', 'padding':'30px'}),
html.Div(id='slider-output-container', style={'width':'500px', 'text-align':'center',
'margin':'auto', 'padding':'30px'}),
with a callback:
@app.callback(
Output('slider-output-container', 'children'),
[Input('bin-selector', 'value')]
)
def update_output_under_slider(value):
return 'Retrieving stats for bins within the interval of {}'.format(value)
In fact, this is very similar to the code in the documentation dcc.Slider | Dash for Python Documentation | Plotly
Here is a screenshot;
So my question is, what could have happened to the last label (indicated by the red arrow)? It should say Bin:1.0
I tried playing with margin and padding but so far no dice.