Skip to content

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

Open
@pawel-paciorek-at-metrohm

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions