Questions tagged [plotly]
Plotly is an open source, high-level, declarative charting library, built on top of d3.js and stack.gl. It ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps. It powers plotly.py, plotly.r, and many more packages in different programming languages.
plotly
14,505
questions
0
votes
0
answers
4
views
Highlight areas of interactive time series plotly plot where y is greater than defined threshold and annotate them
I would like to highlight sections of plotly plot that have values higher than a certain threshold and annotate them. As I am manually screening each highlighted area on the plots is there a way I can ...
0
votes
0
answers
14
views
FastAPI: How to handle Plotly graph click events in a web application?
I am using FastAPI to create a simple web app where I want to render a Plotly graph and record the (x, y) values when the graph is clicked. I am exporting the graph and then trying to set up an event ...
1
vote
1
answer
19
views
Vertical Line Plot in Plotly Does Not Respect Order
I am struggling to convince plotly to respect the order of points in my vertical line chart.
Data
library(dplyr)
d <- tribble(
~value, ~n, ~freq,
"1", 391, 0.0370,
&...
1
vote
1
answer
31
views
Plotly figure with subplots and dropdown hides second plot when non-default option selected
I am trying to generate a Plotly figure with two sub plots and has dropdown menu. The default option works fine (Fig. 1) but when other values are selected the second plot disappears (Fig. 2). How to ...
0
votes
1
answer
28
views
How to apply margin between main Y-Axis Title vs. Subplot Y-Axis Title
I created two heatmap objects that I want to combine them into a single subplot. So far, tracing them and setting them together worked out. However, I cannot add spacing between the make_subplot ...
1
vote
1
answer
28
views
Sort x axis of plotly express stacked bar chart by total for the bar
I have created a stacked bar chart in using plotly express that visualises edits made to a files in GDrive, and who made those edits.
My source dataframe has columns
file_path
emailAddress (of the ...
0
votes
0
answers
31
views
Plotly bar plot y_axis value
I am not understanding the reason why range on y_axis goes more than around 500k whereas the max value for the column Total_Expenditure 2486. What is the reason of being the value at y axis goes over ...
1
vote
1
answer
33
views
Plotly Express: Remove Trendline from Marginal Distribution Figures
I'm looking for a "clean" way to remove the trendline from the marginal-distribution subplot created using plotly-express. I know it's a bit unclear, so please look at the following example:
...
1
vote
2
answers
53
views
Display all levels in legend of ggplotly object
How do I display all legends in R ggplotly? As of now it only displays the legends for matching data.
Here is what I have done so far:
library(ggplot2)
library(plotly)
schoolname <- c("Xavier&...
0
votes
1
answer
29
views
Combine time slider with drop down menu in plotly python
I am trying to create a choropleth map with a time slider to pick a date. I now also want to add a dropdown menu to chose a dataset to display the data of. Here is a minimal example:
import plotly....
1
vote
1
answer
37
views
How do I format R Plotly axis to show ticks in gigabytes instead of billions?
Edited:
I am working on a bar chart that represents database size at the beginning of each month. Please see the simplification of my code below:
library(plotly)
fig <-
plot_ly(type = 'bar',
...
0
votes
0
answers
17
views
Latex annotations on plotly
Does anyone comes to know how can I add latex annotation into a plot displayed by plotly?
I have searched and it says that using something likes this xaxis_title=r'$\sqrt{(n_\text{c}(t|{T_\text{early}}...
0
votes
0
answers
34
views
How to embed a fully interactive Plotly figure in Excel on MacOS
I am trying to embed a browser object in my excel worksheet so I can display interactive charts using plotly. I found this post Plotly: How to embed a fully interactive Plotly figure in Excel? which ...
0
votes
1
answer
31
views
Plotly chart not displayed in jupyter notebook
I want to generate and display plotly charts in a jupyter notebook but for reasons I don't understand, its not working. Here's my simple code:
import plotly.offline as pyo
import plotly.graph_objects ...
0
votes
0
answers
35
views
I'm trying to import this library called plotly.express but getting an error
I'm trying to import this library called plotly.express but getting an error but cannot understand the error at all.
import pandas as pd
import plotly.express as px
import matplotlib
import matplotlib....