New answers tagged plotly
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 ...
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/
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={&...
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 ...
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) %>%
...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
plotly × 15652python × 7899
r × 4905
plotly-dash × 1773
pandas × 1362
ggplot2 × 1265
shiny × 985
javascript × 966
python-3.x × 768
plot × 761
visualization × 760
ggplotly × 486
matplotlib × 484
plotly.js × 424
bar-chart × 345
plotly-express × 328
graph × 325
jupyter-notebook × 325
dataframe × 317
html × 298
scatter-plot × 264
choropleth × 230
heatmap × 214
charts × 213
3d × 181