Max XEN Minted per Week
by jarosciak
HTML
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<canvas id="xenChart" width="400" height="200"></canvas>
CSS
#xenChart {
max-width: 100%;
height: auto;
}
JavaScript
// Include Chart.js from CDN
// Add this script in JSFiddle external resources: https://cdn.jsdelivr.net/npm/chart.js
const ctx = document.getElementById('xenChart').getContext('2d');
// Raw data in the format provided
const rawData = `
2022;40;61141
2022;41;532299
2022;42;1014787
2022;43;1502920
2022;44;2016081
2022;45;2524742
2022;46;3059237
2022;47;3615831
2022;48;4163583
2022;49;4718210
2022;50;5263765
2022;51;5822453
2022;52;6303203
2023;0;6387440
2023;1;6940929
2023;2;7482410
2023;3;8034468
2023;4;8593051
2023;5;9137452
2023;6;9687671
2023;7;10232792
2023;8;10780629
2023;9;11325922
2023;10;11870240
2023;11;12418747
2023;12;12967437
2023;13;13517101
2023;14;14083788
2023;15;14661232
2023;16;15234583
2023;17;15825979
2023;18;16376288
2023;19;16935617
2023;20;17498250
2023;21;18056278
2023;22;18618471
2023;23;19205021
2023;24;19794932
2023;25;20398993
2023;26;20971656
2023;27;21540980
2023;28;22109570
2023;29;22673320
2023;30;23233554
2023;31;23803717
2023;32;24374308
2023;33;24940698
2023;34;25511292
2023;35;26088237
2023;36;26670691
2023;37;27251094
2023;38;27819178
2023;39;28319749
2023;40;28908196
2023;41;29465017
2023;42;30008338
2023;43;30429645
2023;44;30849499
2023;45;31173097
2023;46;31467659
2023;47;31682471
2023;48;31775176
2023;49;31889716
2023;50;31922644
2023;51;32005043
2023;52;32093811
2024;1;32110353
2024;2;32144453
2024;3;32174486
2024;4;32181460
2024;5;32161166
2024;6;32112333
2024;7;32027321
2024;8;31961688
2024;9;31855405
2024;10;31715650
2024;11;31547203
2024;12;31409054
2024;13;31240869
2024;14;31127375
2024;15;30999393
2024;16;30877883
2024;17;30689475
2024;18;30638864
2024;19;30478147
2024;20;30458912
2024;21;30357682
2024;22;30248391
2024;23;30228530
2024;24;30080527
2024;25;29966469
2024;26;29927418
2024;27;29848208
2024;28;29818498
2024;29;29766701
2024;30;29696941
2024;31;29597761
2024;32;29548452
2024;33;29532719
2024;34;29454755
2024;35;29432524
2024;36;29422786
2024;37;29352550
`;
// Split the raw data into lines and then...