update/bold chart axies
This commit is contained in:
3 files changed
+47
-3
No files matched your search
@@ -167,6 +167,18 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
options: {
|
||||||
|
legend: {
|
||||||
|
labels: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontStyle: 'bold',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
scales: {
|
||||||
|
yAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
xAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
||||||
@@ -196,6 +208,18 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
options: {
|
||||||
|
legend: {
|
||||||
|
labels: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontStyle: 'bold',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
scales: {
|
||||||
|
yAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
xAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
||||||
@@ -221,14 +245,22 @@ module.exports = {
|
|||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
legend: {
|
||||||
|
labels: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontStyle: 'bold',
|
||||||
|
}
|
||||||
|
},
|
||||||
scales: {
|
scales: {
|
||||||
// Gives comfortable margin to the top of the y-axis
|
// Gives comfortable margin to the top of the y-axis
|
||||||
yAxes: [{
|
yAxes: [{
|
||||||
ticks: {
|
ticks: {
|
||||||
|
fontStyle: 'bold',
|
||||||
min: Math.round(Math.min(...data)/10)*10 - 10,
|
min: Math.round(Math.min(...data)/10)*10 - 10,
|
||||||
max: Math.round(Math.max(...data)/10)*10 + 10,
|
max: Math.round(Math.max(...data)/10)*10 + 10,
|
||||||
},
|
},
|
||||||
}]
|
}],
|
||||||
|
xAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
},
|
},
|
||||||
// Gives a margin to the right of the whole graph
|
// Gives a margin to the right of the whole graph
|
||||||
layout: {
|
layout: {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ module.exports = {
|
|||||||
|
|
||||||
let stats = new EmbedBuilder()
|
let stats = new EmbedBuilder()
|
||||||
.setColor(client.config.Colors.Default)
|
.setColor(client.config.Colors.Default)
|
||||||
.setDescription(`${tag} stats for the ${weapon}`)
|
.setDescription(`${tag} stats for the **${weapon}**`)
|
||||||
.setThumbnail(weapons[weaponClass][weapon])
|
.setThumbnail(weapons[weaponClass][weapon])
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `Shots Landed`, value: `${player.weaponStats[weapon].shotsLanded}`, inline: true },
|
{ name: `Shots Landed`, value: `${player.weaponStats[weapon].shotsLanded}`, inline: true },
|
||||||
@@ -138,6 +138,18 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
options: {
|
||||||
|
legend: {
|
||||||
|
labels: {
|
||||||
|
fontSize: 14,
|
||||||
|
fontStyle: 'bold',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
scales: {
|
||||||
|
yAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
xAxes: [{ ticks: { fontStyle: 'bold' } }],
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
const encodedChart = encodeURIComponent(JSON.stringify(chart));
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.3.4",
|
"version": "12.3.5",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user