Skip to content

How to use Quarto with shiny without plot flickering? #10757

Answered by gadenbuie
sbacelar asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is in this section of the markup.

# Plot
```{r}
plotlyOutput('plot')
```

# Data
```{r}
tableOutput('data')
```

It's not clear from the markup alone, but Quarto uses the page title # Plot and # Data as the id for the page controls (notice data-bs-target="#plot" in the snippet for the navbar Plot button.

<a id="tab-plot" class="nav-link active" data-bs-toggle="tab" role="tab" data-bs-target="#plot" data-scrolling="false" href="#plot" aria-controls="plot" aria-selected="true"><span class="nav-link-text">Plot</span></a>

The content associated with those buttons is later in the HTML (I've taken a lot of the content out) have id="plot" and id="data".

<div class="tab-content">
    <div

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gadenbuie
Comment options

Answer selected by sbacelar
@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
dashboards plotly shiny Related to shiny integration for interactive document
3 participants