Skip to content

Commit

Permalink
Add argument
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Nov 15, 2024
1 parent eebd889 commit c5994db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vizro-core/examples/visual-vocabulary/custom_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,5 @@ def lollipop(data_frame: pd.DataFrame, **kwargs):
line_color=fig.layout.template.layout.colorway[0],
)

fig.update_layout(showlegend=False, yaxis_showgrid=yaxis_showgrid, xaxis_showgrid=xaxis_showgrid)
fig.update_layout(showlegend=False, yaxis_showgrid=yaxis_showgrid, xaxis_showgrid=xaxis_showgrid, yaxis_rangemode='tozero')
return fig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def lollipop(data_frame: pd.DataFrame, **kwargs):
line_color=fig.layout.template.layout.colorway[0],
)

fig.update_layout(showlegend=False, yaxis_showgrid=yaxis_showgrid, xaxis_showgrid=xaxis_showgrid)
fig.update_layout(showlegend=False, yaxis_showgrid=yaxis_showgrid, xaxis_showgrid=xaxis_showgrid, yaxis_rangemode='tozero')
return fig


Expand Down

0 comments on commit c5994db

Please sign in to comment.