14,622 questions
1
vote
1
answer
41
views
Plotly choropleth - change width to rectangular
I'm making an R Shiny application that uses a choropleth to display some data. The plotly version works well, but I can't find how to adjust its sizing to make full use of the space.
It always looks ...
0
votes
0
answers
16
views
Title in the JSON file for a Plotly plot cannot be rendered by react-plotly.js library in a React Web App
In my React Web App, I would like to use "react-plotly.js" library to render a Plotly plot from the JSON file exported from Python.
An example of the JSON file is:
{
"data"...
1
vote
1
answer
18
views
plotly python: go.chloroplethmap location auto zoom
I cannot seem to find a similar question here on SO, but please direct me there if such a question already exists.
I have a function that plots values on a map, as below. The graph works fine. Note ...
0
votes
0
answers
29
views
How to remove distance/gap between bars on plotly?
I'm trying to make a graph of the ISM services time series data, where the recession periods are indicated via semi transparent bars on top of the graph.
Input code:
fig1b = go.Figure()
fig1b....
0
votes
1
answer
23
views
save table in python as image
I want to save a dataframe as a table in python.
Following https://plotly.com/python/table/, I can save a table as an image, but only the first few rows, not the entire dataset.
Is there a way to ...
1
vote
0
answers
32
views
How to use contour labelformat in plotly python?
I am trying to adjust labels for level contours. Example is given below. However, while it doesn’t cause any errors, there is no visible change in the labels.
import numpy as np
import plotly....
2
votes
1
answer
87
views
How to position a label at the end of a period in Plotly using R
My main query: I wish to create a chart with a date x axis in R using plotly. I wish to display the date for a period at the end of the period.
I am facing some difficulty with this.
Here is a MWE:
...
1
vote
0
answers
55
views
How to make Plotly figure legend be right to left instead of left to right
I have this plot with horizontal legend. I want the legend title to be on the right instead of the left, and I want the bullets of each legend item to be on the right of the name instead of on the ...
0
votes
1
answer
39
views
Plotly date display using UNIX timestamp data in browser timezone
My data comes as a Pandas DataFrame with a datetime index, that is generated from UNIX timestamps. I would like to display the data in a Plotly chart in the browser's timezone, but haven't figured out ...
2
votes
2
answers
49
views
How to add jitter to plotly.go.scatter() in python when mode="lines"
I have a dataframe as such:
Starting point Walking Driving
Lunch 0 8 4
Shopping 0 7 3
Coffee 0 5 2
Where I want to draw, for each index, a green line from "Starting ...
1
vote
1
answer
61
views
plotly_hover does not match data in shiny when using color aesthetic in the plot
I'm having an issue with plotly_hover option when trying to display information from the hover in another output in a shiny app.
I'm working with a plotly made from a ggplot that uses color aesthetic. ...
0
votes
0
answers
45
views
Getting numerical data in a bar plot y axis from character data [closed]
I am new to R and trying to make a simple bar plot of semantic analysis data. Responses for two questions have been compared to a library and categorized as 'positive' and/or 'negative'. I've made a ...
2
votes
1
answer
101
views
How to interactively set and drag vertical lines (time markers) in a Plotly chart in Shiny?
I would like to display a Plotly graphic in a Shiny dashboard that shows the power output during an ergometry test over time. I’d like to manually set 3 time markers (in seconds):
unloaded paddling
...
2
votes
1
answer
56
views
Weird Contour plot from ggplot
I have drawn a contour plot using ggplot2 package as below
library(ggplot2)
mydat = structure(list(Col1 = c(65L, 65L, 65L, 65L, 65L, 65L, 65L, 65L,
265L, 265L, 265L, 265L, 265L, 265L, 265L, 265L, ...
1
vote
0
answers
134
views
How to Link Zoom (X-Axis) of Two Separate Plotly Plots in Streamlit?
I want to visualize audio data in Streamlit with two separate Plotly plots: one for the Time Domain waveform and one for the MFCC (Mel-frequency cepstral coefficients). I want to link their X-axes so ...