Refactoring fixes and adding functionality back

This commit is contained in:
2025-10-07 22:03:36 +08:00
parent d5350aa4cb
commit a6febae8a8
17 changed files with 458 additions and 298 deletions
+6
View File
@@ -36,6 +36,12 @@ google.charts.load('current', {
// load json data
function loadData(jsonData) {
if (jsonData.length === 0) {
// Show message when no data
$('#chart_div').html('<div class="alert alert-info text-center"><h4>No Vote Data Available</h4><p>No players have received MOTM or DotD votes yet.</p><p>Votes will appear here once players start receiving votes.</p></div>');
return;
}
$.each(jsonData, function(index, row) {
data.addRow([
row.playerName,