dash-core-components
dash-core-components copied to clipboard
[BUG] Axes Labels overlapping
Describe your context We have axis label texts overlapping. We do no use any custom CSS.
- replace the result of
pip list | grep dash
below
dash (0.43.0)
dash-core-components (0.42.1)
dash-daq (0.1.5)
dash-html-components (0.13.4)
dash-renderer (0.24.0)
dash-table (3.1.11)
-
if frontend related, tell us your Browser, Version and OS
- OS: [e.g. iOS] macOS 10.14.5 (18F132)
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 74.0.3729.169
Describe the bug
A clear and concise description of what the bug is.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Here we have a label placed on top.
Here we have a label placed on the bottom.
First graph code showing the labels. We just set the position of the legend and its orientation.
return dcc.Graph(
id=id,
figure={
'data': data,
'layout': go.Layout(
xaxis = {'title': xaxislabel},
yaxis = {'title': yaxislabel},
legend = {'x':0, 'y':1.2, 'orientation': "h"}
)
}
The slider code we use:
def PlotWSlider(df=None, graphid='graph-with-slider-1', sliderid='year-slider'):
return html.Div([
dcc.Graph(id=graphid),
dcc.Slider(
id=sliderid,
min=df['date'].min(),
max=df['date'].max(),
value=df['date'].min(),
updatemode='drag',
marks={str(year): str(year) for year in df['date'].unique()}
)
], style={'width': '100%', 'margin': '10', 'vertical-align': 'middle'})
@byronz any update on this issue? I have dash==1.6.0
and it's still there. Thanks
@shammamah can you take a look if you have time ? thanks
@loretoparisi Would you be able to provide a minimal working example that replicates this issue?
@shammamah yes, we will proved it, thank you for your help cc @shoegazerstella
Any update on this?