Skip to content

dashboard: altair tooltip breaks when plot is expanded #9062

@fkgruber

Description

@fkgruber

Bug description

When you click on the expand button tooltips stop working.

Steps to reproduce

---
format: dashboard
title: Quarto dashboard and tooltips
author: me
---
```{python}
#| echo: TRUE
#| eval: TRUE

import altair as alt
from vega_datasets import data

source = data.cars()

alt.Chart(source).mark_circle(size=60).encode(
    x='Horsepower',
    y='Miles_per_Gallon',
    color='Origin',
    tooltip=['Name', 'Origin', 'Horsepower', 'Miles_per_Gallon']
).interactive()
```


rendered it with

quarto render bug_tooltip.qmd  -M embed-resources:true

Expected behavior

tooltips should work when you expand plot

Actual behavior

tooltips are not working

Your environment

  • OS: macOS Sonoma 14.1.1

Quarto check output

Quarto 1.4.549
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.549
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.11.5 (Conda)
Path: /Users/me/miniconda3/bin/python
Jupyter: 5.5.0
Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.26.1

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdashboardsthird-partyIssues involving interaction with a third-party library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions