change/combat rating graph

This commit is contained in:
SowinskiBraeden committed 2023-11-04 20:04:50 -07:00
1 parent 19f56f890c
commit f8a7ea824f
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -207,12 +207,14 @@ module.exports = {
statsEmbed.addFields({ name: 'Combat Rating', value: `${query.combatRating}`, inline: true });
if (query.combatRatingHistory.length == 1) query.combatRatingHistory.push(query.combatRating) // Make array 2 long for a straight line in the graph
const chart = {
type: 'line',
data: {
labels: new Array(query.combatRatingHistory),
datasets: [{
data: query.combatRating,
data: query.combatRatingHistory,
label: 'Combat Rating Over Time',
}],
},