Skip to content

Scatter GL crashes with text (texttemplate) elements enabled. #7441

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

Open
pawel-paciorek-at-metrohm opened this issue Jun 17, 2025 · 0 comments

Comments

@pawel-paciorek-at-metrohm

Configure the chart to use Scatter GL trace.
Try to use text or texttemplate feature.
The trace is not rendered at all, and the exception with the following stack trace can be caught:

systemFontKeywords.indexOf is not a function
TypeError: systemFontKeywords.indexOf is not a function
at Object.parseFont [as parse] (https://cdn.plot.ly/plotly-3.0.1.js:149188:32)
at https://cdn.plot.ly/plotly-3.0.1.js:158783:30
at Array.forEach ()
at GlText2.update (https://cdn.plot.ly/plotly-3.0.1.js:158778:55)
at new GlText2 (https://cdn.plot.ly/plotly-3.0.1.js:158634:14)
at Object.plot (https://cdn.plot.ly/plotly-3.0.1.js:159289:33)
at plotOne (https://cdn.plot.ly/plotly-3.0.1.js:51734:19)
at __commonJS.src/plots/cartesian/index.js.exports.plot (https://cdn.plot.ly/plotly-3.0.1.js:51665:13)
at __commonJS.src/plot_api/subroutines.js.exports.drawData (https://cdn.plot.ly/plotly-3.0.1.js:38651:30)
at __commonJS.src/lib/index.js.lib.syncOrAsync (https://cdn.plot.ly/plotly-3.0.1.js:15430:17)

The problem was confirmed in Firefox and Edge browsers. No other browsers were tested. Most probably it is not a browser dependent issue.

Can be reproduced with:
https://codepen.io/zabka5/pen/GgJBWNE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant