Erratic tooltip display (Vega-embed in Wordpress) #9608
Unanswered
pierre-haessig
asked this question in
Q&A
Replies: 1 comment
-
It's probably a bad interaction with the rest of the Wordpress page. Indeed, I've created a raw page with the Vega-embed code which loads the same json chart specs, and it works nicely: https://pierre-haessig.github.io/notebook-cpu-performance/Geekbench%206%20plots/CPUs_bydate.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've embedded Vega charts in a Wordpress blog: https://pierreh.eu/a-decade-of-office-notebook-processors/ and I've got issues with the display of the tooltips, see screenshot below. This behavior is erratic in the sense that sometimes is displays fine. There was no such issue when creating the spec with Altair in JupyterLab (notebook https://github.com/pierre-haessig/notebook-cpu-performance/blob/main/CPUs_plot.ipynb). And here is the resulting spec: https://raw.githubusercontent.com/pierre-haessig/notebook-cpu-performance/refs/heads/main/Geekbench%206%20plots/CPUs_bydate_linear_withreg.json (a bit large, sorry).
As a summary, here is the Python code that creates the chart. Notice in particular that the tooltip is multiline (created with a list of values)
I've embedded the graphs using Vega-Embed as described https://pierreh.eu/vega-lite-wordpress/ (but on this example chart, there is no tooltip...). It's my first attempt to embed Vega in Wordpress, and I didn't find many sources on this. I'll be glad if you have ideas on how to diagnose this.
Perhaps a bad interaction with Wordpress CSS?
Beta Was this translation helpful? Give feedback.
All reactions