All Questions
34 questions
1
vote
1
answer
102
views
Use plotly to plot multiple pandas column with a dropdown menu to select column
I have a pandas dataframe for which I am trying to a plot bar graph using Plotly with a dropdown menu to select by the stock name column, referring this answer.
But I am unsure how do I add multiple ...
0
votes
1
answer
101
views
How to update axes when value on dropdown changes with go.Bar() (plotly)?
I trying to update the xaxis_title_text (update_layout) and the tickvals and ticktext (update_xaxes) when the dropdown value changes.
I have tried to adapt the Plotly examples (link) and this answer, ...
2
votes
1
answer
845
views
Plotly: Select data with multiple dropdown menus from dataframe
I want to create an interactive figure with plotly graph objects, where I can select the data from two dropdown menus. The menus should select the specific data from a dataframe.
My dataframe looks ...
2
votes
2
answers
488
views
Dropdown menu button doesn't update the plotly timeline plot
I am trying to build a dropdown menu for plotly timeline plot. Here is my code:
import pandas as pd
import plotly.express as px
def main():
d = {
'T_ID': ['T1', 'T2', 'T3', 'T1'],
'TYPE': ...
1
vote
2
answers
1k
views
Plotly python : how to make a dropdown menu with several lines?
I would like to make a dropdown menu in a plotly line graph such as the one in this post but with several lines.
Let's take a sample dataframe :
import pandas as pd
df = pd.DataFrame({"Date":...
0
votes
1
answer
352
views
How to add names to dropdown menu in Plotly
I'm not so good at python and also very new to plotly.
I'm having a trouble adding labels(names) next to dropdown menus in Plotly figure.
I managed to build an interactive table in which you can ...
1
vote
1
answer
3k
views
Creating a dropdown menu for Plotly
I have a table that looks like below:
date
type
value_1
value_2
1/1
A
1
10
1/2
A
5
3
1/3
A
6
12
1/1
B
4
7
1/2
B
10
5
1/3
B
6
15
1/1
C
16
8
1/2
C
8
11
1/3
C
1
5
I want to draw a interactive graph for ...
3
votes
1
answer
3k
views
‘update_layout’ in plotly not working after a few clicks
I have a dropdown menu where I can choose the x- and y-axis variables for a scatter plot. Moreover, a categorical variable can be selected in the menu indicating how to color the points. This seems to ...
0
votes
1
answer
2k
views
Plotly Select Values from Dropdown menu
i have a dataset pm looking like this :
DATE Method Amount D Amount W
0 20220509 m1 34482.57 0.00
1 20220509 m1 15109.53 12.00
2 20220509 m2 ...
0
votes
1
answer
486
views
Plotly is showing blank graph as output with required grid (x, y, facet_row) but without data whereas it is showing fig (or graph) for other datasets
I am trying to plot the dataframe : dataframe which has 5 columns, out of which, x axis should be week, geogname should be dropdown list, trace should be used as color and dataframe is facet_row, ...
0
votes
1
answer
683
views
plotly graph_objects (go) selecting two lines from two dropdowns menu to compare in the same figure
i am trying to compare two lines in the same fig in plotly go, the goal is to let the user to select two entities (i.e. countries) from two dropdown menu in the chart
this is the chart with all ...
1
vote
1
answer
2k
views
Drop down menu for the graph
I am new to python and I'm trying to make a drop down menu for this graph that shows temperatures at different times of day.The datas are imported from a csv file . Below is the code:
import csv
...