plotly / plotly/plotly.R

plotlyServerURL does not seem to edit config

Open
#1,963 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.