plotly.js
plotly.js copied to clipboard
MathJax does not render in hover labels
In the example at https://plot.ly/javascript/LaTeX/ when hovering over the plotted points, the graph shows latex code instead of rendered math text.
Confirmed as a bug. Thanks for reporting this!.
Yep, thanks for reporting. This has been a bug ever since we added support for MathJax more than two years ago.
It might worthwhile to look into swapping MathJax for KaTeX.
@etpinard has any testing been done on moving to KaTeX?
@spencerlyon2 No. This is not a high priority for us at the moment,
It might worthwhile to look into swapping MathJax for KaTeX.
The following page could be helpful for comparing MathJax v3 and KaTeX: https://news.ycombinator.com/item?id=22582343
From my browser, it look like this, maybe escape sequence prefix is needed, for example '\\alpha'
instead of '\alpha'
on Chrome

Also, I find that on firefox, the legend size is not correct. (Maybe I should open another issue.)
On firefox

Another example for incorrect legend in firefox
on firefox

on chrome
