Что вызывает «Uncaught ReferenceError: Plotly не определен»? ⇐ Php
Что вызывает «Uncaught ReferenceError: Plotly не определен»?
New to plotly.js and trying to get it working on a WordPress page in a custom form using PHP and JavaScript. I enqueue the script, and I have confirmed it is being loaded when the page loads. I then setup the data and layout for the chart (this part was working on another page on a different site). But the debugger in Firefox shows the message “Uncaught ReferenceError: Plotly is not defined” on the line where the chart is instantiated.
Plotly.newPlot('#myChart', data, layout, config);\n";
I’ve tried loading the plotly js file from the CDN and from the site itself, with no difference in results.
I’m using “/forms/js/plotly-2.29.1.min.js”, and I have confirmed it is being loaded without errors in the debugger.
Источник: https://stackoverflow.com/questions/781 ... ot-defined
New to plotly.js and trying to get it working on a WordPress page in a custom form using PHP and JavaScript. I enqueue the script, and I have confirmed it is being loaded when the page loads. I then setup the data and layout for the chart (this part was working on another page on a different site). But the debugger in Firefox shows the message “Uncaught ReferenceError: Plotly is not defined” on the line where the chart is instantiated.
Plotly.newPlot('#myChart', data, layout, config);\n";
I’ve tried loading the plotly js file from the CDN and from the site itself, with no difference in results.
I’m using “/forms/js/plotly-2.29.1.min.js”, and I have confirmed it is being loaded without errors in the debugger.
Источник: https://stackoverflow.com/questions/781 ... ot-defined
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как устранить эту ошибку: Uncaught ReferenceError: jQuery не определен
Anonymous » » в форуме Jquery - 0 Ответы
- 46 Просмотры
-
Последнее сообщение Anonymous
-
-
-
(Laravel Blade) Uncaught ReferenceError: $ не определен в Laravel Blade [дубликат]
Anonymous » » в форуме Jquery - 0 Ответы
- 77 Просмотры
-
Последнее сообщение Anonymous
-