All Questions
Tagged with plotly-python or plotly
15,652 questions
1
vote
1
answer
152
views
Making a interactive wordcloud in Dash + 2 different wordclouds for different clicks
I'm trying to make an interactive wordcloud in Dash. Is it even possible?
Also, I'm trying to make two different wordclouds, with each click being a different wordcloud:
1 click -> shows one ...
1
vote
2
answers
175
views
Adjust vertical line based on maximum value in graph plotly
I'm creating a barplot in plotly where I want to add a vertical line. In the plot we initially only show one selected item from the legend. Now I want to have the vertical be the maximum height of the ...
1
vote
1
answer
91
views
In R plotly how do you stop the legend order reversing when using fill = "tonexty"
When creating a line plot and filling between two lines using the fill = "tonexty" option, the legend order is reversed by default. How do you stop this happening?
This problem has been ...
0
votes
0
answers
78
views
Dash DataTable stays empty when layout is injected via Tabs callback (callbacks not firing / data not set)
I’m building a Dash app with dcc.Tabs. The tab content is rendered via a “router” callback that returns a layout object. Inside that layout I have a dash_table.DataTable that should be filled by a ...
1
vote
0
answers
68
views
Plotly ordering the hover labels at each x axis point [duplicate]
I want the hover labels to appear ordered by the y axis value at each x axis point.
import plotly_express as px
fig = px.line(
[
dict(price=2, year=2023, product='A'),
dict(price=3,...
2
votes
1
answer
64
views
How can I keep my zoom state while updating a plotly graph?
import plotly.graph_objects as go
import solara as sol
@sol.component
def Plot():
ui_state = UIState()
analyasis_view = AnalysisView()
print("Rendering Plot Component")
print(...
0
votes
1
answer
70
views
Dash Plotly Flask Application randomly hangs for 1 minute
I have build a simple application with two pages (a multi-page Dash app) which I am running locally using Gunicorn with two workers and four threads. It's a simple dashboard application.
When I ...
0
votes
0
answers
84
views
Apply dash-bootstrap theme to dcc components
I want the dash.dcc.Dropdown to look like the dbc.DropdownMenu in the bootstrap site:
This is my sample code:
# -*- coding: utf-8 -*-
from dash import Dash, dcc, html
import dash_bootstrap_components ...
-1
votes
1
answer
59
views
Plotly Dash dbc column width
In a Plotly Dash application I'm trying to use the horizontal space optimaly.
There are four columns in the first row. Right now this is what I have:
from dash import Dash, dcc, html, Input, Output, ...
2
votes
1
answer
124
views
R plotly + crosstalk: filtering multiple datasets on a single ggplotly plot
I'm trying to use the R packages crosstalk and plotly (along with tidyverse packages) to create a panels that displays multiple data sets together. There's two data frames that I want to put into one ...
1
vote
1
answer
49
views
plotly grouped bars with make_subplots
I am trying to have my subplots be grouped, rather than stacked. However, fig.update_layout({"barmode": "group"}) does not seem to work.
My df as here:
import pandas as pd
import ...
0
votes
0
answers
46
views
Plotly Choropleth not showing with Geopandas
I've seen this issue come up in other pages but none of their solutions worked for me.
import plotly.express as px
import geopandas as gpd
import cartopy.crs as ccrs
regions = gpd.read_file("...
2
votes
1
answer
76
views
problem on the x-axis of the graph, doesn't render the time
I am working on a dashboard using Shiny for Python and Plotly Express. I am trying to create a Gantt chart (using px.timeline) to visualize the operating periods of different boilers (ON/OFF states).
...
1
vote
2
answers
52
views
How to avoid Plotly (plotly.express.line) line chart creating zig-zag line?
I want to create line charts with plotly, my X axis is a year, y a value. Sometimes, the data is incomplete, i.e., some curves will have years missing or will start in different years than others.
It ...
0
votes
1
answer
86
views
set states to indicate on and off with timestamp
def prepare_dataframe(df):
# Map original CSV column names to internal aliases for easier access
df.rename(columns={
'Bomba Calor - Temperatura de Aire (°C)': 'temp_aire',
'...