Skip to content

Commit

Permalink
Updated formatting of graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pierce committed Jul 29, 2020
1 parent 0325e62 commit e792b03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/deaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e792b03

Please sign in to comment.