plotlyServerURL does not seem to edit config
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
Amgen ran into an issue where enabling the edit chart button in the menubar for a chart redirected to plot.ly instead of chart-studio.plotly.com. They were able to fix this by adding Sys.setenv("plotly_domain"="https://chart-studio.plotly.com").
Reproducible example:
library(plotly)
Sys.setenv("plotly_domain"="https://chart-studio.plotly.com")
g <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
stat_density_2d(aes(fill = ..level..), geom = "polygon") +
xlim(1, 6) + ylim(40, 100)
fig <- ggplotly(g)
fig %>%
config(showEditInChartStudio=T)
# config(plotlyServerURL = 'https://chart-studio.plotly.com', showEditInChartStudio=T, showSendToCloud=T)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproducible R example in the issue and compare config(plotlyServerURL=...) with the Sys.setenv("plotly_domain", ...) workaround. Trace how showEditInChartStudio chooses its destination and verify that the configured chart-studio.plotly.com URL is used without the environment variable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100