3👍
Based on Androz2091 comment:
I used ChartJS Canva Node to render to ChartJS graph as picture which will be used to create Discord.MessageAttachment object. Then I reply with a MessageEmbed to server.
The following gist should represent the previous workflow: ChartJs – DiscordJs – Node Canva
I used this code in my first discord bot and it’s working well, here the bot response look like:
A bit messy to see what’s going on but my bot is still in progress ^^
Hope this will be usefull in the future, feel free to ask for more informations.
- [Chartjs]-How can i iterate or get all object out of array with object key in Chart.js
- [Chartjs]-Click on interactive chart.js bar chart and get value for labels and groups in JS
Source:stackexchange.com