Skip to content

Commit

Permalink
hover update
Browse files Browse the repository at this point in the history
  • Loading branch information
cdolfi authored and JamesKunstle committed Oct 2, 2023
1 parent f1cdf1f commit ad0d732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def create_figure(df_cont_subset):
# creates bins with 3 month size and customizes the hover value for the bars
fig.update_traces(
xbins_size="M3",
hovertemplate="Date: %{x}" + "<br>Amount: %{y}<br><extra></extra>",
hovertemplate="Date: %{x}" + "<br>Amount: %{y}",
)

# update xaxes to align for the 3 month bin size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def create_figure(df):
# creates bins with 3 month size and customizes the hover value for the bars
fig.update_traces(
xbins_size="M3",
hovertemplate="Date: %{x}" + "<br>Amount: %{y}<br><extra></extra>",
hovertemplate="Date: %{x}" + "<br>Amount: %{y}",
)

# update xaxes to align for the 3 month bin size
Expand Down

0 comments on commit ad0d732

Please sign in to comment.