Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marou-Fer committed Sep 13, 2024
1 parent 4431f1f commit 8be1bd4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions SAC_Custom_Widgets/Line Chart/Linechart.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
var getScriptPromisify = (src) => {
return new Promise((resolve) => {
$.getScript(src, resolve)
})
}

const parseMetadata = metadata => {
const { dimensions: dimensionsMap, mainStructureMembers: measuresMap } = metadata
const dimensions = []
for (const key in dimensionsMap) {
const dimension = dimensionsMap[key]
dimensions.push({ key, ...dimension })
(function () {
const getScriptPromisify = (src) => {
return new Promise((resolve) => {
$.getScript(src, resolve)
})
}
const measures = []
for (const key in measuresMap) {
const measure = measuresMap[key]
measures.push({ key, ...measure })

const parseMetadata = metadata => {
const { dimensions: dimensionsMap, mainStructureMembers: measuresMap } = metadata
const dimensions = []
for (const key in dimensionsMap) {
const dimension = dimensionsMap[key]
dimensions.push({ key, ...dimension })
}
const measures = []
for (const key in measuresMap) {
const measure = measuresMap[key]
measures.push({ key, ...measure })
}
return { dimensions, measures, dimensionsMap, measuresMap }
}
return { dimensions, measures, dimensionsMap, measuresMap }
}

(function () {
const prepared = document.createElement('template')
prepared.innerHTML = `
<style>
Expand Down

0 comments on commit 8be1bd4

Please sign in to comment.