-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mathjax doesn't render for firefox #2616
Comments
Huh, if you open http://localhost:3000/devtools/test_dashboard/#mathjax in FF it looks like the only place it works is in annotations, and not even all of those. Interestingly that mock doesn't put any MathJax into the legend, can't recall why, perhaps I had a problem with it in the image server? But yeah, on Chrome it works in the legend. This is probably a |
This ticket is still relevant after #3018 |
From https://community.plot.ly/t/latex-in-axis-title-appears-at-wrong-position-in-firefox/15504, axis titles also appear off in FF |
I can confirm with latest. Here is an example that does not render properly: <meta charset="UTF-8">
<head>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<script> window.PlotlyConfig = {MathJaxConfig: 'local'} </script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<script>
var trace1 = {
x: [.01, .1, 1, 10, 100],
y: [1000, 500, 250, 125, 62.5],
type: 'scatter'
};
var data = [trace1];
var layout = {
xaxis: {
title: '$c$',
},
yaxis: {
title: '$a^2+b^2$',
}
};
Plotly.plot('myDiv', data, layout);
</script>
</body> |
As @alexcjohnson hinted at, it is indeed a plotly.js/src/lib/svg_text_utils.js Lines 22 to 24 in 172c3e6
|
originally reported in https://github.com/plotly/streambed/issues/2674, reported again in plotly/dash-core-components#194
The text was updated successfully, but these errors were encountered: