Plotly Dash : Chart size issues in Hex tickformat

import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go

fig = go.Figure(
    data=[go.Scattergl(x=[1,2,3],y=[2, 1, 3],name="bar",)],
    layout_title_text="Native Plotly rendering in Dash"
# fig.update_yaxes({"title_text" : "y-axis","tickformat":"X",})

app = dash.Dash(__name__)

app.layout = html.Div([
    dcc.Graph(id="graph", figure=fig),



Please note the update_yaxes call is commented:

If i run this the output is as expected like below:

But, when i uncomment the update_yaxes ( i want the axes values to be in hex format ) and run the same code i get the following output:

As you can see the chart size is not proper and not taking up the whole space.

How can i solve this issue while keeping the hex tick format?