Questions tagged [plotly]

Plotly.js 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. Use [r-plotly] for the R package and [plotly-python] for the Python package.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

plotly radar chart - I need to set some attributes

I have this code as follows; self.fig.add_trace(go.Scatterpolar( r=_r, theta=_theta, fill="toself", line=_line, name=self.name)...
arame3333's user avatar
  • 9,951
0 votes
0 answers
13 views

plotlyProxyInvoke doesn`t update data properly?

I am trying to update a plot using plotlyProxyInvoke and it seems to ignore one dimension I use this code to render my graph, getting this Result observeEvent(input$test_button_Out,{ output$...
Carlos Hernndez Armas Chernanx's user avatar
-2 votes
0 answers
36 views

all of the lines of graph in dash are same and different lines cant change to have different color [duplicate]

i have e different dropdowns , and i want when user select different "CELL" s, DRAW A NEW LINE FOR EACH CELL WITH DIFFERENT COLORS. it draws lines , but all of the cells color are the same. ...
SOURA ELLE's user avatar
0 votes
0 answers
16 views

Interactively harnessing the selected vertical span (the start and end x-coordinates ) in an audio (speech) plot

I have an app written in Streamlit, and I plot some of my results using Plotly. While Plotly makes the plot interactive (zooming, selecting a portion of a plot, etc), yet I couldn't find a way to ...
Mohammadreza Soltani's user avatar
-3 votes
0 answers
17 views

Information Share on Saving html files in python [closed]

I spend many hours struggling to save html file in python. If the file name contains ":", you will not get any warning or error. The html file will be of 0 MB and extension will not be .html ...
Vivek Dabholkar's user avatar
1 vote
0 answers
35 views

How to show axis labels of all subplots when the labels are strings?

Problem summary Whenever I try to create a plot with plotly express 5.18.0 containing a subplot and axes labels that are not numbers, I only get labels for the first subplot subsequent subplots show ...
Saaru Lindestøkke's user avatar
1 vote
0 answers
24 views

How to add fullscreen icon to a plotly chart modebar in Python Dash App

I am trying to add fullscreen option in plotly modebar to all my plotly's chart in a python Dash app. I've seen a lot of custom code snippets to achieve it in R ou JS. However, I can't find something ...
user23027270's user avatar
-2 votes
0 answers
23 views

Choropleth maps showing blank map

import pandas as pd import plotly.express as px food=pd.read_csv(r"C:\Users\ASUS\Desktop\FILES\Data analysis\projects\indian_food.csv") food.head() Indian_dishes= ( food .groupby(&...
REEMA RAJPUT's user avatar
1 vote
1 answer
36 views

Optimize rendering of sunburst plots?

I have created a go.Sunburst html output that looks as expected. However, its output is unsurprisingly very complicated and irregular (it is displaying a large, deep UNIX directory structure). The ...
Chris's user avatar
  • 199
-1 votes
1 answer
28 views
+50

Plotly Sankey node X Position isn't as expected

I have a plotly sankey diagram which I'm trying to manually position the nodes. The node definition look like this: node = { labels = ["undefined", "undefined category", "...
iasksillyquestions's user avatar
0 votes
1 answer
27 views

How to move the legend of each trace inside each subplot when subplot has more than 1 column

When subplot has 2 columns and 2 rows. Typically the legends are grouped together and places on the same location like below on the right hand side. I am wondering if I can place legend of each trace ...
roudan's user avatar
  • 3,408
0 votes
0 answers
13 views

in plotly, how to change colors with css variables?

I would like to be able to change colors with css variables so that when other parts of my React code changes that css variable dynamically, it should reflect the change inside of plotly frame as well....
Terlan's user avatar
  • 19
0 votes
0 answers
23 views

How do I show logarithmically spaced grid lines at all ticks on a log-log plot using Plotly for javascript? [closed]

I'm trying to plot a log-log graph that shows logarithmically spaced grid lines at all of the ticks in a light color, and then see principal lines in a darker color. See below image where you can see ...
Xuxa's user avatar
  • 1
0 votes
1 answer
28 views

Legend and labels for Plotly express line graph

I want to draw a three graphs on one x-y axes using Plotly.express. I've read a CSV file of monthly returns using pandas, and have a pandas dataframe containing four series: Date, IRA, MSCI and SnP. I ...
The Buggser's user avatar
0 votes
0 answers
30 views

plotly - iplot() on google colab does not work

When I use iplot() in google colab. I'm not having error and I can't get any result too. It just runs it, but brings nothing. import pandas as pd import numpy as np %matplotlib inline from plotly ...
murat can Urhan's user avatar
0 votes
2 answers
37 views

No plotly graph in folium popup

I am trying to embed a plotly barchart in a folium popup. This is how I proceed in Google Colab : # basic map : map = folium.Map( location = [ 47.9060278 , 1.9020353 ] , zoom_start = 6, tiles = '...
Fabrice BOUCHAREL's user avatar
1 vote
1 answer
24 views

Control duplication of legend items in Python Plotly.express

I am using plotly.express to produce a figure with 3 subplots. The legend repeats for each subplot, so I have 3 legend listings (one for each subplot) for each item. All operate together when I click ...
WillH's user avatar
  • 293
0 votes
2 answers
42 views

plotly express strip plot with temporal data

Plotly express strip plot does not separate the points by color when temporal data is used on the x-axis. Set up some data with random groups and status (which will be the color of points in our plot) ...
LogZ's user avatar
  • 154
0 votes
2 answers
78 views

passing value from callback to callback in Plotly dash application

i have a dash application with a plotly graph i have two callbacks i want to get input from the user store it with dcc.store in the variable with id 'stkName-value' and call it in the other callback. ...
smith's user avatar
  • 162
0 votes
1 answer
78 views

Adding two plotly line charts to the same facetgrid figure - python

I'm trying to add two separate traces using different y values to the exact same facet grid figure. The figure uses facet_col to separate subplots based on color. For each subplot the x-axis display ...
Jerryj123's user avatar
0 votes
0 answers
6 views

Issue with flex dashboard shiny apps

I am working on a portfolio for my class. I am using a flex dashboard, with shiny, to showcase two shiny visualizaitons and 4 plotly charts. The first shiny app's radio button code works for both of ...
Kevin's user avatar
  • 1
1 vote
1 answer
90 views
+150

How to make a stacked barplot with secondary y axis in R with ggplot and plotly?

I'm working with the following dataframe: data <- data.frame('Tipo_de_Parto' = c("Cesário", "Vaginal", "Cesário", "Vaginal&...
Lana Meijinhos's user avatar
1 vote
0 answers
20 views

R plotly, impossible to use the color parameter and have the text at the same time

I have a plotly barplot in R but I can't manage to keep the colors of the bars by group and at the same time add the text at the top of the barplot. I've tried replacing the "color" ...
nimliug's user avatar
  • 401
0 votes
0 answers
38 views

Can you plot within a for loop in Javascript?

When I try the below my plot is empty, is the below possible? With the blow code my plot is empty. for (let t in test) { let test3 = test[t] const { country, deforestation_mean,...
Velvet Robinson's user avatar
2 votes
2 answers
43 views

Getting GPS boundaries for each hexbin in a python plotly 'hexbin_mapbox' heat map - Both centroid GPS point and GPS points for each corner of hexbin

I have created a hexbin "heat map" in Python using plotly by mapping a number of locations (using GPS latitude / longitude), along with the value of each location. See code below for sample ...
BGG16's user avatar
  • 508
0 votes
1 answer
24 views

Appending Traces to the same "step" using Plotly's sliders in Python

I want to create a figure that changes between 20 different graphs using Plotly's sliders. I am modelling a moving average, where the slider changes the number of days used in the aggregation of data. ...
Hagan Prestinario's user avatar
0 votes
0 answers
8 views

QGIS DataPlotly plugin

I have just installed the QGIS data plotly plugin V4.1.0 https://plugins.qgis.org/plugins/DataPlotly/ At present it only seems to have the scatter plot. No boxplot or anything else. I am using QGIS 3....
WickHerd's user avatar
0 votes
0 answers
47 views

Export Jupyter Notebook cell output that includes Plotly plots to an html file

I have a cell in a pretty long jupyter notebook that has an output that includes text (through print statements) as well as 3D scatter plots made with plotly (a python plotting library). The text and ...
J_Code's user avatar
  • 57
0 votes
0 answers
30 views

Display plotly go figure in widget

I would like to make a widget in jupyter lab with a plotly go figure. I started by copying this example: https://plotly.com/python/figurewidget-app/?_ga=2.180976559.943274886.1701077393-1452099185....
esperluette's user avatar
  • 1,852
0 votes
1 answer
48 views

Applying Color Gradient to Rows in AgGrid Dash Table

In the following code, I want to apply a color gradient to the background color of each row based on the combined addition of two columns: 'Raised to Date' and 'Years in Operation' (higher values ...
user2940774's user avatar
1 vote
1 answer
32 views

Plot multiple vertical lines using plotly facet grid

I want to plot 2 vertical lines displaying two different means. This is again separated into different subplots using plotly facet grid. With below, I'm displaying the cut in separate subplots. In ...
Jerryj123's user avatar
0 votes
1 answer
29 views

How to edit plotly gauge plot ticks in R?

I'm having trouble removing the ticks on my plotly gauge chart and having the start (min) and end (max) ticks to be underneath the graph. this is the code I'm using to create my gauge. plot1 <- ...
Abdu Kikhia's user avatar
0 votes
0 answers
32 views

R shiny app sometimes plot the charts on half of the screen only, on refreshing it plots normally on full screen

I have a R shiny app in which I've plotted charts using plotly library, when I run the app, the charts are plotted shrunk. They are not plotted according to the width of the screen. Specifying width ...
Aayushi Singh's user avatar
0 votes
0 answers
22 views

Add pause/play button to plotly animation?

I have a plotly object animated with a rotation, and I would like to add a pause/play button to the object. Currently, the object is automatically rotating when I open it, but I would like to have a ...
user20934000's user avatar
0 votes
1 answer
19 views

How to change the color of a plotly stacked area chart in R? [duplicate]

This is my current plot, but I can't change the color of the areas! df_long <- structure(list(Date = structure(c(19394, 19395, 19396, 19397, 19394, 19395, 19396, 19397, 19394, 19395, 19396, 19397, ...
Camilo Almario's user avatar
-1 votes
0 answers
17 views

Plotly.Blazor | Scaling issue with double.ToString() in C# Blazor ASP.NET Core web app hosted on IIS

I encountered a scaling issue with a PlotlyChart on a Blazor page hosted as an ASP.NET Core web Applicaiton on IIS. Plotly: Plotly.Blazor version: 2.18.0 Environment: IIS hosted on Windows Server ...
Lawrence's user avatar
2 votes
2 answers
53 views

Using plotly in R to show "facets! interactively in dropdown list

I'd like to create an animated graph using plotly in R in a way in which my facets are displayed by selectiong on a dropdown list. I'm not sure if this can be done, I have seen something similar here ...
RGR_288's user avatar
  • 91
2 votes
1 answer
46 views

Plotly "drawopenpath" color of finished line vs. drawing-in-process

I’m currently working on an R/shiny app where users can draw trajectories over time, using plotly’s “drawopenpath” function. When users press the left mouse button and start drawing, the drawn line ...
Nik_D's user avatar
  • 43
1 vote
1 answer
72 views

how to find the cycles using python

I have battery voltage data i want to find the cycles in it is there any method in python to detect the cycles here I am pasting the link for the data https://docs.google.com/spreadsheets/d/...
appu's user avatar
  • 163
0 votes
0 answers
24 views

python plotly - heatmap with different data above and below diagonal

I'm trying to create a heatmap based on two different matrices with identical dimensions but different data, so that the values for matrix1 are shown below the diagonal and the values for matrix2 are ...
soungalo's user avatar
  • 1,166
0 votes
1 answer
24 views

How to only have one value in hover text for plot_ly map

I am trying to figure out how to remove all the extra information in my pop-up for my plot_ly map in R so only the country name (mapname) shows on the popup. I do not want the ISO code or the number ...
user20934000's user avatar
0 votes
0 answers
22 views

Why choropleth mapbox, using animation, not show all discrete values from a dataframe?

I'm trying to plot a map using this dataframe (df_FR_1) My problem is when I try to use choropleth_mapbox like this : px.choropleth_mapbox(df_FR_1, geojson = geo_reg, locations = 'Code', color = '...
Jorge Mariano Mamani Soria's user avatar
0 votes
1 answer
103 views

Use dropdown menu to print different ggplotly plots in Rmarkdown

I have a series of data with this format: GeneFam s0 Prev Yvar fam_VO056_k119_707118_2 -2.94891455 1.897019 Latitude_c fam_VO118_k119_1069373_4 -2.63244195 1.897019 Latitude_c ...
ALG's user avatar
  • 193
3 votes
1 answer
32 views

Interactive legend not showing when hovering in the center of polygons in an R Plotly map. Only appears over the outline (shape)

I am creating an interactive map (shape) using Plotly in R. The map displays #frequencies in different departments. However, when hovering over the center of the polygons, the tooltip with the ...
Rodrigo's user avatar
  • 33
0 votes
0 answers
40 views

Crosstalk filter list of plotly to build conditional subplot

I am trying to filter a named list of plotly objects dynamicaly in R. Goal is to display a subset of them inside a subplot according to a datetime range from user. Code has to be runned from a ...
Clemsang's user avatar
  • 5,161
0 votes
1 answer
89 views

Passing arguments to a nested function in Python

I have two functions, called update_y_with_x and update_x, which are as follows: update_y_with_x def update_y_with_x(chosen_tissue): for i, trace in enumerate(f.data): if trace.type == &...
KLM117's user avatar
  • 439
1 vote
1 answer
64 views

R Plotly trouble with using datetime values for creating barplot with asymmetric error bars

I am trying to create a bar plot that has with bars that represent median time and error bars that represent q3 and q1. Additionally I would like the values which start with a unit of seconds to be ...
prizzlywizzly's user avatar
1 vote
2 answers
49 views

How to create a rotating animation of a Scatter3D plot with plotly and save it as gif?

With plotly in jupyter I am creating a Scatter3D plot as follows: # Configure the trace. trace = go.Scatter3d( x=x, y=y, z=z, mode='markers', marker=dict(color=colors, size=1) ) # ...
Alex's user avatar
  • 42.3k
0 votes
1 answer
68 views

How to create a 3D scatter plot with plotly with all markers individually colored?

Following the suggestion HERE I have tried the following code to create a Scatter3D plot with plotly in a jupyter notebook so each marker is colored individually, like you can do with matplotlib and ...
Alex's user avatar
  • 42.3k
0 votes
0 answers
34 views

how to make funnel in python that branches off?

enter image description hereHow do I make a funnel that branches off into multiple branches and effectively visualize this? I have tried ploty but the functionality doesn't support this. For example, ...
user21585314's user avatar

1
2 3 4 5
283