Closed timbmg closed 9 months ago
Could you properly close your code blocks and use extra backticks when include code blocks? (usually four ````
).
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
The end.
@mcanouil, done! Thanks for the tip with the 4 backticks!
Another side note, it is good practice and often a requirement in markdown to have empty lines around headings and code blocks. This reduces a lot the number of parsing errors.
Unfortunately, this isn't a Quarto bug, and there's nothing we can do here. You can reproduce this issue outside of quarto by creating a standalone vega + revealjs presentation. (It's not a trivial issue to fix either; Vega assumes a 100% zoom in its point location code. I tried fixing it in the past and failed.)
Thank you @cscheid! Is there already an issue in vega? Sorry I am new to this, don't even really know what to search for.
There might not be, because I happen to know the Vega devs personally (from past academic life) and I reached out to them out-of-band.
But I would start by creating a simple example using a plain revealjs presentation (no quarto, using the latest revealjs) that embeds a plain vega-lite-using-JS plot still experiences the issue, and then filing a bug with https://github.com/vega/vega.
In other words, I don't think this is an Altair bug, or a Quarto bug. I believe this is a Vega bug that arises out of the way they compute screen offsets.
Bug description
Similar to #2430, the tooltip has an offset / the "border" of the tooltip does not correspond to the border of the grid in the example below. I have also experinece this in a circle/line plot.
Steps to reproduce
Heatmap