From e792b03e75d5f63e731fa0a98a56a6cb27d67f7d Mon Sep 17 00:00:00 2001 From: Kevin Pierce Date: Wed, 29 Jul 2020 12:32:07 -0400 Subject: [PATCH] Updated formatting of graphs --- commands/deaths.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/deaths.js b/commands/deaths.js index ef6db61..06f1b5a 100644 --- a/commands/deaths.js +++ b/commands/deaths.js @@ -94,7 +94,7 @@ module.exports = { const historicDeathEmbed = new Discord.MessageEmbed() .setColor("#990000") .setTitle("Historic Deaths for the Past 30 Days Globally") - .setImage(`https://quickchart.io/chart?width=500&height=350&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${deathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"white",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"white",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"white",fontSize:16}}]}}}`) + .setImage(`https://quickchart.io/chart?w=500&h=350&bkg="white"&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${deathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"black",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"black",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"black",fontSize:16}}]}}}`) return message.channel.send(historicDeathEmbed); } @@ -131,7 +131,7 @@ module.exports = { const historicDeathEmbed = new Discord.MessageEmbed() .setColor("#990000") .setTitle(`Historic Deaths for the Past ${numDays} Days Globally`) - .setImage(`https://quickchart.io/chart?width=500&height=350&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${dayDeathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"white",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"white",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"white",fontSize:16}}]}}}`) + .setImage(`https://quickchart.io/chart?w=500&h=350&bkg="white"&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${dayDeathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"black",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"black",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"black",fontSize:16}}]}}}`) return message.channel.send(historicDeathEmbed); } @@ -170,7 +170,7 @@ module.exports = { const historicDeathEmbed = new Discord.MessageEmbed() .setColor("#990000") .setTitle(`Historic Deaths for the Past ${numDays} Days in ${historicCountryDeaths["country"]}`) - .setImage(`https://quickchart.io/chart?width=500&height=350&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${countryDeathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"white",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"white",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"white",fontSize:16}}]}}}`) + .setImage(`https://quickchart.io/chart?w=500&h=350&bkg="white"&c={type:'line',data:{labels:[${xAxisLabels}],datasets:[{label:'Deaths',data:[${countryDeathData}],fill:false,borderColor:"rgb(178,34,34)",pointBackgroundColor:"rgb(178,34,34)"}]},options:{legend:{labels:{fontColor:"black",fontSize:18}},scales:{yAxes:[{ticks:{fontColor:"black",beginAtZero:false,fontSize:16}}],xAxes:[{ticks:{fontColor:"black",fontSize:16}}]}}}`) return message.channel.send(historicDeathEmbed); }