plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

MathJax does not render in hover labels

Open nibage opened this issue 9 years ago • 7 comments

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.

nibage avatar May 22 '16 10:05 nibage

Confirmed as a bug. Thanks for reporting this!.

mdtusz avatar May 23 '16 15:05 mdtusz

Yep, thanks for reporting. This has been a bug ever since we added support for MathJax more than two years ago.

etpinard avatar May 25 '16 14:05 etpinard

It might worthwhile to look into swapping MathJax for KaTeX.

etpinard avatar May 25 '16 14:05 etpinard

@etpinard has any testing been done on moving to KaTeX?

sglyon avatar Jul 26 '16 18:07 sglyon

@spencerlyon2 No. This is not a high priority for us at the moment,

etpinard avatar Jul 28 '16 13:07 etpinard

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

archmoj avatar Jan 11 '22 16:01 archmoj

From my browser, it look like this, maybe escape sequence prefix is needed, for example '\\alpha' instead of '\alpha'

on Chrome

Screenshot_20220913_210136

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

On firefox

Screenshot_20220913_210346

Another example for incorrect legend in firefox

on firefox

Screenshot_20220913_210715

on chrome

Screenshot_20220913_210847

ChasingZenith avatar Sep 13 '22 13:09 ChasingZenith