在plotly.js条形图中给出此问题的代码

时间:2019-07-15 14:59:48

标签: angular plotly.js

尝试运行代码时出现此错误。

ERROR TypeError: t.match is not a function
at r.cleanId (plotly.min.js:7)
at Object.r.cleanData (plotly.min.js:7)
at Object.r.plot (plotly.min.js:7)
at Object.r.newPlot (plotly.min.js:7)
at PlotlyService.push../node_modules/angular-plotly.js/esm5/angular-plotly.js.js.PlotlyService.newPlot (angular-plotly.js.js:34)
at PlotComponent.push../node_modules/angular-plotly.js/esm5/angular-plotly.js.js.PlotComponent.createPlot (angular-plotly.js.js:195)
at PlotComponent.push../node_modules/angular-plotly.js/esm5/angular-plotly.js.js.PlotComponent.ngOnInit (angular-plotly.js.js:121)
at checkAndUpdateDirectiveInline (core.js:10105)
at checkAndUpdateNodeInline (core.js:11371)
at checkAndUpdateNode (core.js:11333)

0 个答案:

没有答案