Skip to content

Commit

Permalink
update custom pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Marou-Fer committed Jan 29, 2024
1 parent 5c5e917 commit d978ad4
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Custom-Widget-Samples/Custom Pie Chart/main_Pie_Custom.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
var getScriptPromisify = (src) => {
/*var getScriptPromisify = (src) => {
return new Promise((resolve) => {
$.getScript(src, resolve);
});
};
};*/

var getScriptPromisify = (src) => {
// Workaround with conflict between geo widget and echarts.
const __define = define
define = undefined
return new Promise(resolve => {
$.getScript(src, () => {
define = __define
resolve()
})
})
}

(function () {
const prepared = document.createElement("template");
Expand Down

0 comments on commit d978ad4

Please sign in to comment.