Compare commits
No commits in common. "0c9e7ed1833ca79a020a480b395ed20af85838a0" and "0e40f403e4e9a3349b7f303044467a5ad6588cdf" have entirely different histories.
0c9e7ed183
...
0e40f403e4
20
src/index.js
20
src/index.js
@ -86,9 +86,6 @@ function populateChart() {
|
|||||||
size: 18,
|
size: 18,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
time: {
|
|
||||||
unit: lookupTimeUnit(currentTimeSelection)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
ticks: {
|
ticks: {
|
||||||
@ -103,17 +100,6 @@ function populateChart() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function lookupTimeUnit(query){
|
|
||||||
const lookup = {
|
|
||||||
'h': 'day',
|
|
||||||
'd': 'week',
|
|
||||||
'm': 'month',
|
|
||||||
'y': 'month',
|
|
||||||
'l': 'year'
|
|
||||||
}
|
|
||||||
return lookup[query.charAt(query.length - 1)]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async function callUpdateURL() {
|
async function callUpdateURL() {
|
||||||
let resp = await fetch("https://data.wowtoken.app/token/current.json");
|
let resp = await fetch("https://data.wowtoken.app/token/current.json");
|
||||||
@ -272,7 +258,7 @@ function detectRegionQuery(urlSearchParams) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.warn("An incorrect or malformed region selection was made in the query string");
|
console.log("An incorrect or malformed region selection was made in the query string");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -290,7 +276,7 @@ function detectTimeQuery(urlSearchParams) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.warn("An incorrect or malformed time selection was made in the query string");
|
console.log("An incorrect or malformed time selection was made in the query string");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,7 +292,7 @@ function detectAggregateQuery(urlSearchParams) {
|
|||||||
}
|
}
|
||||||
aggregateFunctionToggle();
|
aggregateFunctionToggle();
|
||||||
} else {
|
} else {
|
||||||
console.warn("An incorrect or malformed aggregate selection was made in the query string");
|
console.log("An incorrect or malformed aggregate selection was made in the query string");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user