diff --git a/web/assets/js/dashboard/dashboard.js b/web/assets/js/dashboard/dashboard.js index 35c5b3f..770246c 100644 --- a/web/assets/js/dashboard/dashboard.js +++ b/web/assets/js/dashboard/dashboard.js @@ -27,10 +27,10 @@ const data = { labels: labels, datasets: [{ label: 'Event', - fill: events, + fill: eventCalendars, backgroundColor: CHART_COLORS.blue, borderColor: CHART_COLORS.blue, - data: events, + data: eventCalendars, }, { label: 'Calendar', diff --git a/web/views/admin/dashboard/dashboard.jsp b/web/views/admin/dashboard/dashboard.jsp index 41f52af..2125cfb 100644 --- a/web/views/admin/dashboard/dashboard.jsp +++ b/web/views/admin/dashboard/dashboard.jsp @@ -84,11 +84,11 @@ listCategoryQuantity[${category.id}] = 0; - var events = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + var eventCalendars = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var calendars = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; if (new Date("${event.created_at}").getFullYear() == new Date().getFullYear()) { - events[new Date("${event.created_at}").getMonth()] += 1; + eventCalendars[new Date("${event.created_at}").getMonth()] += 1; listCategoryQuantity[${event.additional.category.id}] += 1; }