posit-dev / posit-dev/positron

htmlwidgets plot preview is showing entire UI

Open
#2,968 7 comments 0 reactions 1 assignee View on GitHub

@jmcphers is already working on this.

Since May 6, 2024.

area: plots area: ui bug lang: r os-windows
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

Positron Version:

2024.04.0-1579
Windows 11

Steps to reproduce the issue:

From https://github.com/posit-dev/positron/issues/2843#issuecomment-2088828971

  1. Create html widget plots
library(ggplot2)
library(plotly)

df <- data.frame(x = 1:10, y = rnorm(10))
p1 <- ggplot(data = df, mapping = aes(x=x,y=y)) + geom_point() +
theme_bw()
p2 <- ggplotly(p1)
p2

library(dygraphs)
dygraph(nhtemp, main = "New Haven Temperatures") %>% 
  dyRangeSelector(dateWindow = c("1920-01-01", "1960-01-01"))
  1. Click through the plots in the plots pane
  2. Note the preview image

https://github.com/posit-dev/positron/assets/6433789/281f1871-b3cc-47a9-b34d-6751282d3712

What did you expect to happen?

I expected the previews to be just the plots, not the entire UI

Were there any error messages in the output or Developer Tools console?

No

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.