Skip to main content

New answers tagged

0 votes

Making a interactive wordcloud in Dash + 2 different wordclouds for different clicks

Maybe there's more optimal way, but this works (explanation below): # Source - https://stackoverflow.com/q/79850156 # Posted by Rasmus Svendsen, modified by community. See post 'Timeline' for change ...
kmtms's user avatar
  • 11
0 votes

How can I keep my zoom state while updating a plotly graph?

Setting uirevision:'true' in the layout allows to "persist user interactions", see: https://plotly.com/javascript/uirevision/
Sébastien Guarnay's user avatar
0 votes

Set the range of the y axis in Plotly

Building on the accepted answer, you can use None to set only one limit and leave the other to the automatic default (Docs). For instance, setting the Y-axis to [0, auto]: fig.update_layout(yaxis={&...
Phenyl's user avatar
  • 611
2 votes
Accepted

Adjust vertical line based on maximum value in graph plotly

Now I want to have the vertical be the maximum height of the max bar shown in the plot 1. You can add a vertical line vline that scales to the plot's y-range automatically like shown here. This is ...
lailaps's user avatar
  • 11.6k
0 votes

Adjust vertical line based on maximum value in graph plotly

You could: Create one vertical line per carb Tie its visibility to the same legend logic walk(levels(df_mtcars$carb), function(c) { max_val <- df_mtcars %>% filter(carb == c) %>% ...
Sébastien Guarnay's user avatar
2 votes

In R plotly how do you stop the legend order reversing when using fill = "tonexty"

It turns out there is a legend option called traceorder that can be explicitly set to 'normal', and this will stop the legend flipping. It is referred to in a similar question. The option doesn't ...
Rainfall.NZ's user avatar
0 votes

Plotly: How to Adjust Histogram Bin Size with Slider?

If you are making html, you can do like this to add slider to bottom: import random import plotly.graph_objects as go def add_bin_slider(fig, bin_counts_L): slider_steps_L = [] for n in ...
Kardo Paska's user avatar
0 votes

Dash Plotly Flask Application randomly hangs for 1 minute

gunicorn app:server --workers 4 --threads 1 --timeout 120 For CPU-heavy or Pandas/NumPy tasks, threads don’t help because of the Python GIL. Increasing worker and reducing threads improves ...
Amit_45's user avatar

Top 50 recent answers are included