Category "plotly"

How to switch direction of axis in 3D scatterplot plotly?

I plotted the following using plotly and got the resulting plot shown before. X is the # of hours in a day, Y is a proportion between 0-1, and Z is a categorica

Plotly/Vistime - overlapping labels

I have a simple timeline I've built using Vistime/Plotly: library(vistime) library(plotly) data <- read.csv(text="event,group,start,end,color

Error message when attempting launch plotly dash

I checked the errors and looked up everything I could try to fix the issue in every way I could. This is the error I'm getting: Can someone please tell me what

interactive 3D plot with right aspect ratio using plotly

I am using matplotlib to plot 3D image (i.e 3D bin packing problem like loading containers). when plotting, the length/width/height is automatically scaled whic

Plotly Dash - TypeError: Object of type Polygon is not JSON serializable

I am attempting to plot choropleth map using dash and mapbox. At runtime, I am getting an error "TypeError: Object of type Polygon is not JSON serializable". sa

Plotly update customdata with dropdown button

I have a quick question: basically I have created a plot with some hover information and I have a dropdown button, where the user can chose from which dataframe

Remove empty bar space in Group bar chart using Plot.ly javascript?

I have rendered a group bar chart with 3 bars in each group. But some times one or two bars could be empty. In that case, It's occupying space for ALL THREE bar

Saving a plotly image not working with kaleido even though it is installed

I am trying to save a simple plotly figure to a directory. I understand it needs kaleido (I have version '0.2.1') and also at least plotly '5.3.1' which are ins

Plotly: How to define colors in a figure using Plotly Graph Objects and Plotly Express?

There are many questions and answers that touch upon this topic one way or another. With this contribution I'd like to clearly show why an easy approch such as

Change order of categorical bars in Plotly parallel categories

I am trying to visualize changes in gene expression as categorical variables (up, down, no change) over various timepoints. I have a dataframe describing differ

How to write math symbols in plotly dash app?

I want to plot math symbols in a plotly dash app. For example, I've Tried this: import dash import dash_html_components as html app = dash.Dash(__name__) app.

ModuleNotFoundError: No module named 'plotly'

After reading all the existing post related to this issue, i still did not manage to fix it. ModuleNotFoundError: No module named 'plotly' I have tried all t

Plotly - drawing both cube and cylinder items

I am dealing with an issue of drawing cylinder item as a result of a 3D bin packing model. There is a simple example drawing cylinder item which can be referenc

How can I add text labels to a Plotly scatter plot in Python?

I'm trying to add text labels next to the data points in a Plotly scatter plot in Python but I get an error. How can I do that? Here is my dataframe: worl

Plotly Express Scatter plots does not plot full range of x variables

I am trying to use Plotly Express to create a scatter plot plotting the average temperature over time in a sample of 75 countries. However, only 34 countries ar

Is there a way to add the bin range label into the tooltip for a histogram using ggplotly in R?

library(tidyverse) library(ggplot2) library(plotly) data(mpg) ggplotly( mpg %>% ggplot(aes(x=hwy)) + geom_histogram(), tooltip = ("all")) When you

How to automate running of Jupyter Notebook cells periodically

I want to integrate my jupyter notebook with my website, where I have written the code to fetch real-time data from MySQL server and do real-time visualisation

How to change color of text in plotly scatter and different marker?

I want use plot.ly to plot iris dataset. It has an color parameter in scatter data work like hue in seabron but it only change the color of marker and cant chan

plotly sankey diagram positioning

I'd like to add some annotations to Plotly Sankey diagram. And I want to draw them right over the blocks of sankey nodes (with the same x-position) but couldn'

R: Plotly: Treemap: Color only lowest labels

By plotting a treemap, I added a color code (colorway) in order to have all main parents having the same color scheme. I would now recolor only the minor childs