Category "plotly"

How to add vertical line to plotly (python)

I want to add a vertical line when value 'signal' occurs in dataframe column 'signal' based on date index (x-axis) How can I achieve this? dataframe: date

Is there any way to display Plotly Express Graph in React App

Plotly Express provides very easy functions to draw customizable scatter plots, since I did not get any help regarding this question from over a week -> ques

in Jupyter Notebook ModuleNotFoundError: No module named 'plotly'

I installed plotly library using anaconda prompt and it is appearing in my conda list. I can use it in Spyder but when i Import it in my Jupyter Notebook it Sho

Build a plot from JSON with plotly.js

I have built a plot using plotly.py and convert it to JSON file: plotly.io.write_json(fig, 'name.json') After creating the JSON file I need to build the same

Plotly plot histogram and line chart on same figure

Hello I am trying to plot a histogram and a line chart on the same figure to create a MACD chart. However the histogram data needs to be scaled down so it doesn

How to remove weekend datetime gaps from x-axis of a financial chart?

I have a use case where I pull and plot Forex data in the form of ask and bid on the graph and this is based on minute, hour or day candlesticks and I am only p

What does the %||% operator do in R? Percent Pipe Pipe Percent

I came across this code when reviewing the R plotly library: modify_list <- function(x, y, ...) { modifyList(x %||% list(), y %||% list(), ...) } What d

Python plotly Scattermapbox define colors by category

I want to draw some colored areas on a map. The coordinates are defined in a dataframe and I want each area to have a different color depending on the test_type

how to stop interpolating the values that are missing in plotly?

So I created the area plot of my data in plotly. My data has the whole year of the time block and the data which we have in the table is only for 84 days( 7 day

Is there a way to format plotly Sankey Diagram display?

I am creating a Sankey diagram with plotly as follows: import plotly.graph_objects as go fig = go.Figure(data=[go.Sankey( valueformat = ".0f",

Is there a way to prevent the legend on plotly from moving up into the chart when its orientation is horizontal?

Context I am currently in the middle of creating a data visualisation web app. I am using Plotly to create a timeseries. I am having trouble with the legend. I

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