Category "plotly"

Remove "0%" labels from a plotly pie chart in Python

I need to plot a pie chart that shows all descriptions in a legend, despite the values being zero. However, I would like also to remove the "0%"s labels from th

How to split negative and positive bars by zero line in barplot?

My data have 2 numerical columns (positive and negative values) and 2 categorical variables. Now I want to plot negative and positive bars on same line, instead

Visualizing the permutohedron in 3D plot

I am trying to plot the Permutohedron in python using plotly, numpy, and pandas. This is my current code: import plotly.express as px import numpy as np import

How to modify points drawn on map using a dropdown menu?

Here's how I create the map and add a dropdown menu with option1 and option2. import pandas as pd import plotly.express as px us_cities = pd.read_csv( 'htt

How do i plot a bar graphic with the groupby made column

I'm an Environmental Engineer, trying to make a leap change to the data science area which interests me more. I'm new to Python, I work at a company that evalua

Dash DatePickerRange with Graph

I am trying to connect a graph to a DatePickerRange. However, i keep running into a problem, when trying to connect the graph and date picker. I have the follow

R Plotly Bar Chart - Add horizontal line markers

I want to draw a bar chart with two bars side by side for each category (LETTERS) and add a horizontal line to each bar (y_ref as red lines & z_ref as green

How to apply slope plot R code to another data

I have dataframe which represents sales by model within 2 different years. 'change' column stands for absolute change by models from 2020 to 2021 while 'chng.pe

R not changing Plotly colorscales for Contour plots

Okay, so I am using a generic data set to troubleshoot this problem. Here is the code I am entering into R: library(plotly) fig <- plot_ly( type = 'cont

How to embed an image in to a cell of a Plotly go table?

I've seen here that you can use DashTable to allow Markdown in a plotly table like so, app.layout = Div([ DataTable( columns=[ dict(name

Plotly python rows

I have code that looks like this. It works well, but I want to modify the size of columns: import plotly.graph_objects as go from plotly.subplots import make_su

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