Category "plotly"

How to set color per column with Plotly

So simple and yet i just can't find solution after reading a lot. I would like to plot 2 columns out of my dataframe (Pandas) and i want to set color for each.

Handling dash callback of an input inside the multi Tab app

I am trying to build a multi tab dash application based on the reference code from https://dash-bootstrap-components.opensource.faculty.ai/examples/graphs-in-ta

Plotly 3D plot with right aspect ratio

the relevant post is here: interactive 3D plot with right aspect ratio using plotly For a further improvment, I am wondering how to plot a container frame accor

Exporting Jupyter notebook with plotly to html not displaying correctly when offline

I am using Jupyter lab, everything works fine within jupyter lab even when I am offline. However whenever I try to export the report to HTML. the plotly plots a

How to add a local image (svg / png) to plotly layout?

I know this question has a few answers, but none satisfy me, because they all include Dash, and I want to use only basic plotly. I have a local image file: /tmp

How can I strech an axis of a plotly plot?

See the image in the link for reference: 1 Even though the figure is pretty wide, the plot itself is way to small. Adjusting the figure size however doesn't imp

How to hide text labels for rangeslider in Plotly?

I'm trying to plot a time-series plot with a range slider using Plotly in Python. import plotly.express as px import pandas as pd data = pd.read_csv('https://r

Plotly chart is a mess of lines after index converted to pandas datetime

My plotly chart is just a mess of zig-zagging lines (see chart here). This only happens after I use df['Date'] = pd.to_datetime(df.index) to convert the index t

Save image with fig.write_image in Python Plotly

I would like to save images within plotly fig.write_image using a forloop, where each image name include a customised id and Timestamp value with a string forma

Drawing a surface 3D plot using "plotnine" library

Question : Using the python library 'plotnine', can we draw an interactive 3D surface plot? Backup Explanations What I'd like to do is, under python environme

Use Python plotly chart in PHP

I have created a pie graph with Python plotly library fig = go.Figure(data=[go.Pie(labels=data["x"], values=data['value'])]) fig = dcc.Graph(id='pie_graph', fi

Liquid::SyntaxError with Plotly in Markdown files using Jekyll

Trying to convert an .ipynb notebook to Markdown that contains Plotly charts for use in a Jekyll site (hosted on GitHub Pages). I'm running into this error: Liq

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