All Questions
Tagged with plotly-python or plotly
15,651 questions
Score of -1
0 answers
70 views
How can I vertically align a Plotly chart and a custom HTML card in adjacent Streamlit columns?
I'm building a dashboard in Streamlit where two columns are displayed side by side. The left column contains a Plotly chart, while the right column contains a custom HTML/CSS card rendered using st....
Score of 0
2 answers
112 views
Adding curved lines with arrowsheads
I create a plotly with curved lines. I managed to add them using shapes and bezier curves. The arrow should "nicely" be in the direction of the bezier-curve at its end.
Here is a full ...
Score of 3
2 answers
226 views
plotly/leaflet htmlwidgets render blank in self-contained `bookdown::html_document2` HTML
When I knit a bookdown::html_document2 document with the default self_contained: true, every plotly and leaflet widget renders as blank empty space. The container is present and correctly sized, but ...
Score of 2
1 answer
177 views
rangeslider widget in plotly is not displaying the overall dataset together with the selection
I try to create a shiny app to display time-series data, with several selectors and an input dates range widget. Moreover, I would like to update accordingly the input date range widget when I use the ...
Score of 0
0 answers
81 views
Plotly Dash performance issues with large datasets on callback updates
During my M.S. in Computer Science at Northern Illinois University I worked on a project that involved visualizing datasets with around 500k rows using Plotly Dash.
The issue I ran into was that every ...
Advice
1
vote
2
replies
112
views
Plotly: distinct base colors per group with per-trace lightness gradient within each group
I'm building a Plotly chart in Python where I have multiple files (groups), and each file contains multiple cycles (traces). The goal is:
Each file gets a distinct, readable base color
Within each ...
Score of 0
3 answers
138 views
Plotly scatter map live updating - symbols don't change
Using plotly, I want to show a series of symbols in real time on a map.
Consider the following:
import threading, datetime, dash, time
from dash import dcc, html, dash_table, Patch
from dash....
Score of 2
1 answer
121 views
Plotly creating multiple duplicate graphs
Minimum reproducable example:
iso country year gdp_per_c Scenario
AFG Afghanistan 2030 0.3890 SSP1-2.6
AFG Afghanistan 2040 0.6465 SSP1-2.6
AFG Afghanistan 2030 0.2106 ...
Advice
0
votes
3
replies
58
views
Changing Sizes on px.scatter
I'm new to programming and I wanted a map where the capital cities were bigger than the ones that are not. I did this but it only returns me the capitals. What am I doing wrong?
enter image ...
Tooling
2
votes
2
replies
108
views
Python treemap with first level as color and legend rather than labels
I would like to try and create treemaps in Python that look similar to these ones :
First example of what I'm aiming for
Second example of what I'm aiming for
(These examples come from this webpage)
...
Score of 3
1 answer
115 views
Save Plotly 3D scatter as proper SVG
I have a very simple 3D figure constructed with Plotly as lines and disks. No surfaces. No lighting. No complexity. Just lines and disks. Here's a minimal example of this:
import numpy as np
import ...
Score of 0
2 answers
75 views
Plotly 3D background/foreground lines cause flicker and draw conflicts
I am adding a border to lines in plotly3d contexts by layering a thinner line over a thicker one, e.g.
import plotly.graph_objects as go
import numpy as np
t = np.linspace(0, 10, 100)
x, y, z = np....
Score of 1
1 answer
100 views
Ploty Graph Breaks with multiple sources
I'm working on a dashboard to interactively display ride wait times in a theme park. I've got a script running that polls a web API for wait times every 5 minutes. From that script, I have a series of ...
Score of 2
1 answer
114 views
How to remove column name from facet titles in Plotly Express histogram
import plotly.express as px
import pandas as pd
df = pd.DataFrame({
"country": ['Poland', 'Poland', 'Poland',
'Germany', 'Germany', 'Germany',
'France', '...
Score of 1
1 answer
80 views
Plotly Choropleth Map: Data points not showing up randomly in the map
I am trying to create an animated choropleth map using Plotly that shows when certain countries legalised a policy. So basically, the map is animated to show each year and countries are coloured ...